.class public Lcom/example/m6wmr/DishesActivity2;
.super Landroid/app/Activity;
.source "DishesActivity2.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/example/m6wmr/DishesActivity2$MyAdapter;,
        Lcom/example/m6wmr/DishesActivity2$MyPageChangeListener;,
        Lcom/example/m6wmr/DishesActivity2$mOncliclistener;
    }
.end annotation


# static fields
.field private static dishes_particular_top:Landroid/view/View;

.field public static h:Landroid/os/Handler;


# instance fields
.field private AnimationDuration:I

.field private anim_mask_layout:Landroid/view/ViewGroup;

.field attr1:Ljava/lang/String;

.field attr2:Ljava/lang/String;

.field bb:Lbean/GoodsBean;

.field private buyImg:Landroid/widget/ImageView;

.field private ca:Ldata/PupCarAdapter3;

.field private close:Landroid/widget/TextView;

.field private closebtn:Landroid/widget/LinearLayout;

.field private context:Landroid/content/Context;

.field private currentItem:I

.field private cursor:Landroid/database/Cursor;

.field private cv:Landroid/content/ContentValues;

.field private db:Landroid/database/sqlite/SQLiteDatabase;

.field private del:Landroid/widget/TextView;

.field private dotViewsList:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Landroid/view/View;",
            ">;"
        }
    .end annotation
.end field

.field private evaluateBeans:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList",
            "<",
            "Lbean/EvaluateBean;",
            ">;"
        }
    .end annotation
.end field

.field fff:I

.field flag:I

.field goodsid:Ljava/lang/String;

.field private goodsls:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Lbean/GoodsBean;",
            ">;"
        }
    .end annotation
.end field

.field private helper:Ldbclass/DBOpenHelper;

.field imageLoader:Lcom/nostra13/universalimageloader/core/ImageLoader;

.field ind:I

.field private iv:Landroid/widget/ImageView;

.field private iv_add:Landroid/widget/ImageView;

.field private iv_car:Landroid/widget/ImageView;

.field private iv_del:Landroid/widget/ImageView;

.field lb:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Landroid/widget/Button;",
            ">;"
        }
    .end annotation
.end field

.field lb2:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Landroid/widget/Button;",
            ">;"
        }
    .end annotation
.end field

.field private list:Landroid/widget/ListView;

.field listattr:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Ljava/util/Map",
            "<",
            "Ljava/lang/String;",
            "Ljava/lang/Object;",
            ">;>;"
        }
    .end annotation
.end field

.field listcom:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Ljava/util/Map",
            "<",
            "Ljava/lang/String;",
            "Ljava/lang/Object;",
            ">;>;"
        }
    .end annotation
.end field

.field listdet:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Ljava/util/Map",
            "<",
            "Ljava/lang/String;",
            "Ljava/lang/Object;",
            ">;>;"
        }
    .end annotation
.end field

.field listdet2:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Ljava/util/Map",
            "<",
            "Ljava/lang/String;",
            "Ljava/lang/Object;",
            ">;>;"
        }
    .end annotation
.end field

.field listimg:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Lbean/Shopimg;",
            ">;"
        }
    .end annotation
.end field

.field listpro:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Lbean/ProductBean;",
            ">;"
        }
    .end annotation
.end field

.field private ll_guige:Landroid/widget/LinearLayout;

.field private ll_kk2:Landroid/widget/LinearLayout;

.field private ll_kkk:Landroid/widget/LinearLayout;

.field private ll_pay:Landroid/widget/LinearLayout;

.field private lv_dishes_particular:Landroid/widget/ListView;

.field m:Lmyapp/MyApp;

.field open:Ljava/lang/String;

.field pid:Ljava/lang/String;

.field private price:Ljava/lang/String;

.field private final requestcode:I

.field private rr_kkk:Landroid/widget/RelativeLayout;

.field search:Landroid/widget/RelativeLayout;

.field shopid:Ljava/lang/String;

.field private shopname:Ljava/lang/String;

.field private sumcart:I

.field private sumcartcost:F

.field private tempgd:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Lbean/GoodsBean;",
            ">;"
        }
    .end annotation
.end field

.field private tv_bag:Landroid/widget/TextView;

.field private tv_cont:Landroid/widget/TextView;

.field private tv_count:Landroid/widget/TextView;

.field private tv_eva:Landroid/widget/TextView;

.field private tv_name:Landroid/widget/TextView;

.field private tv_num:Landroid/widget/TextView;

.field private tv_price:Landroid/widget/TextView;

.field private tv_sal:Landroid/widget/TextView;

.field private tv_total:Landroid/widget/TextView;

.field private tv_total1:Landroid/widget/TextView;

.field private viewList:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Landroid/widget/ImageView;",
            ">;"
        }
    .end annotation
.end field

.field private viewPager:Landroid/support/v4/view/ViewPager;

.field private wb_foodsparticular:Landroid/webkit/WebView;


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .prologue
    .line 104
    const/4 v0, 0x0

    sput-object v0, Lcom/example/m6wmr/DishesActivity2;->h:Landroid/os/Handler;

    return-void
.end method

.method public constructor <init>()V
    .locals 2

    .prologue
    const/4 v0, 0x0

    const/4 v1, 0x0

    .line 85
    invoke-direct {p0}, Landroid/app/Activity;-><init>()V

    .line 102
    iput-object v0, p0, Lcom/example/m6wmr/DishesActivity2;->m:Lmyapp/MyApp;

    .line 109
    iput-object v0, p0, Lcom/example/m6wmr/DishesActivity2;->cursor:Landroid/database/Cursor;

    .line 121
    iput v1, p0, Lcom/example/m6wmr/DishesActivity2;->flag:I

    .line 128
    iput v1, p0, Lcom/example/m6wmr/DishesActivity2;->ind:I

    .line 131
    const/16 v0, 0x7b

    iput v0, p0, Lcom/example/m6wmr/DishesActivity2;->requestcode:I

    .line 135
    const/16 v0, 0x320

    iput v0, p0, Lcom/example/m6wmr/DishesActivity2;->AnimationDuration:I

    .line 136
    const-string v0, ""

    iput-object v0, p0, Lcom/example/m6wmr/DishesActivity2;->shopname:Ljava/lang/String;

    .line 146
    iput v1, p0, Lcom/example/m6wmr/DishesActivity2;->currentItem:I

    .line 153
    iput v1, p0, Lcom/example/m6wmr/DishesActivity2;->fff:I

    .line 85
    return-void
.end method

.method static synthetic access$0(Lcom/example/m6wmr/DishesActivity2;)Landroid/widget/TextView;
    .locals 1

    .prologue
    .line 92
    iget-object v0, p0, Lcom/example/m6wmr/DishesActivity2;->tv_count:Landroid/widget/TextView;

    return-object v0
.end method

.method static synthetic access$1(Lcom/example/m6wmr/DishesActivity2;)Landroid/widget/ImageView;
    .locals 1

    .prologue
    .line 95
    iget-object v0, p0, Lcom/example/m6wmr/DishesActivity2;->iv_del:Landroid/widget/ImageView;

    return-object v0
.end method

.method static synthetic access$10(Lcom/example/m6wmr/DishesActivity2;)Landroid/widget/ImageView;
    .locals 1

    .prologue
    .line 95
    iget-object v0, p0, Lcom/example/m6wmr/DishesActivity2;->iv_add:Landroid/widget/ImageView;

    return-object v0
.end method

.method static synthetic access$11(Lcom/example/m6wmr/DishesActivity2;)Ljava/util/List;
    .locals 1

    .prologue
    .line 120
    iget-object v0, p0, Lcom/example/m6wmr/DishesActivity2;->tempgd:Ljava/util/List;

    return-object v0
.end method

.method static synthetic access$12(Lcom/example/m6wmr/DishesActivity2;)Ljava/util/List;
    .locals 1

    .prologue
    .line 120
    iget-object v0, p0, Lcom/example/m6wmr/DishesActivity2;->goodsls:Ljava/util/List;

    return-object v0
.end method

.method static synthetic access$13(Lcom/example/m6wmr/DishesActivity2;)V
    .locals 0

    .prologue
    .line 655
    invoke-direct {p0}, Lcom/example/m6wmr/DishesActivity2;->setData()V

    return-void
.end method

.method static synthetic access$14(Lcom/example/m6wmr/DishesActivity2;)Landroid/widget/ListView;
    .locals 1

    .prologue
    .line 88
    iget-object v0, p0, Lcom/example/m6wmr/DishesActivity2;->lv_dishes_particular:Landroid/widget/ListView;

    return-object v0
.end method

.method static synthetic access$15(Lcom/example/m6wmr/DishesActivity2;)Landroid/widget/TextView;
    .locals 1

    .prologue
    .line 92
    iget-object v0, p0, Lcom/example/m6wmr/DishesActivity2;->tv_sal:Landroid/widget/TextView;

    return-object v0
.end method

.method static synthetic access$16(Lcom/example/m6wmr/DishesActivity2;)Landroid/widget/TextView;
    .locals 1

    .prologue
    .line 93
    iget-object v0, p0, Lcom/example/m6wmr/DishesActivity2;->tv_name:Landroid/widget/TextView;

    return-object v0
.end method

.method static synthetic access$17(Lcom/example/m6wmr/DishesActivity2;)Landroid/widget/TextView;
    .locals 1

    .prologue
    .line 93
    iget-object v0, p0, Lcom/example/m6wmr/DishesActivity2;->tv_eva:Landroid/widget/TextView;

    return-object v0
.end method

.method static synthetic access$18(Lcom/example/m6wmr/DishesActivity2;)Landroid/widget/TextView;
    .locals 1

    .prologue
    .line 92
    iget-object v0, p0, Lcom/example/m6wmr/DishesActivity2;->tv_cont:Landroid/widget/TextView;

    return-object v0
.end method

.method static synthetic access$19(Lcom/example/m6wmr/DishesActivity2;)Landroid/widget/TextView;
    .locals 1

    .prologue
    .line 92
    iget-object v0, p0, Lcom/example/m6wmr/DishesActivity2;->tv_price:Landroid/widget/TextView;

    return-object v0
.end method

.method static synthetic access$2(Lcom/example/m6wmr/DishesActivity2;)Landroid/content/Context;
    .locals 1

    .prologue
    .line 86
    iget-object v0, p0, Lcom/example/m6wmr/DishesActivity2;->context:Landroid/content/Context;

    return-object v0
.end method

.method static synthetic access$20(Lcom/example/m6wmr/DishesActivity2;)V
    .locals 0

    .prologue
    .line 1136
    invoke-direct {p0}, Lcom/example/m6wmr/DishesActivity2;->initAdapter()V

    return-void
.end method

.method static synthetic access$21(Lcom/example/m6wmr/DishesActivity2;)I
    .locals 1

    .prologue
    .line 146
    iget v0, p0, Lcom/example/m6wmr/DishesActivity2;->currentItem:I

    return v0
.end method

.method static synthetic access$22(Lcom/example/m6wmr/DishesActivity2;)Landroid/widget/ListView;
    .locals 1

    .prologue
    .line 148
    iget-object v0, p0, Lcom/example/m6wmr/DishesActivity2;->list:Landroid/widget/ListView;

    return-object v0
.end method

.method static synthetic access$23(Lcom/example/m6wmr/DishesActivity2;)Ljava/util/List;
    .locals 1

    .prologue
    .line 1290
    invoke-direct {p0}, Lcom/example/m6wmr/DishesActivity2;->getAllGoodsBeanList()Ljava/util/List;

    move-result-object v0

    return-object v0
.end method

.method static synthetic access$24(Lcom/example/m6wmr/DishesActivity2;Ldata/PupCarAdapter3;)V
    .locals 0

    .prologue
    .line 151
    iput-object p1, p0, Lcom/example/m6wmr/DishesActivity2;->ca:Ldata/PupCarAdapter3;

    return-void
.end method

.method static synthetic access$25(Lcom/example/m6wmr/DishesActivity2;)Ldata/PupCarAdapter3;
    .locals 1

    .prologue
    .line 151
    iget-object v0, p0, Lcom/example/m6wmr/DishesActivity2;->ca:Ldata/PupCarAdapter3;

    return-object v0
.end method

.method static synthetic access$26(Lcom/example/m6wmr/DishesActivity2;)Landroid/widget/TextView;
    .locals 1

    .prologue
    .line 149
    iget-object v0, p0, Lcom/example/m6wmr/DishesActivity2;->del:Landroid/widget/TextView;

    return-object v0
.end method

.method static synthetic access$27(Lcom/example/m6wmr/DishesActivity2;)Landroid/database/sqlite/SQLiteDatabase;
    .locals 1

    .prologue
    .line 106
    iget-object v0, p0, Lcom/example/m6wmr/DishesActivity2;->db:Landroid/database/sqlite/SQLiteDatabase;

    return-object v0
.end method

.method static synthetic access$28(Lcom/example/m6wmr/DishesActivity2;)Landroid/widget/TextView;
    .locals 1

    .prologue
    .line 92
    iget-object v0, p0, Lcom/example/m6wmr/DishesActivity2;->tv_total:Landroid/widget/TextView;

    return-object v0
.end method

.method static synthetic access$29(Lcom/example/m6wmr/DishesActivity2;)Landroid/widget/TextView;
    .locals 1

    .prologue
    .line 150
    iget-object v0, p0, Lcom/example/m6wmr/DishesActivity2;->close:Landroid/widget/TextView;

    return-object v0
.end method

.method static synthetic access$3(Lcom/example/m6wmr/DishesActivity2;)I
    .locals 1

    .prologue
    .line 110
    iget v0, p0, Lcom/example/m6wmr/DishesActivity2;->sumcart:I

    return v0
.end method

.method static synthetic access$30(Lcom/example/m6wmr/DishesActivity2;)Ldbclass/DBOpenHelper;
    .locals 1

    .prologue
    .line 107
    iget-object v0, p0, Lcom/example/m6wmr/DishesActivity2;->helper:Ldbclass/DBOpenHelper;

    return-object v0
.end method

.method static synthetic access$31(Lcom/example/m6wmr/DishesActivity2;Landroid/database/Cursor;)V
    .locals 0

    .prologue
    .line 109
    iput-object p1, p0, Lcom/example/m6wmr/DishesActivity2;->cursor:Landroid/database/Cursor;

    return-void
.end method

.method static synthetic access$32(Lcom/example/m6wmr/DishesActivity2;)Landroid/database/Cursor;
    .locals 1

    .prologue
    .line 109
    iget-object v0, p0, Lcom/example/m6wmr/DishesActivity2;->cursor:Landroid/database/Cursor;

    return-object v0
.end method

.method static synthetic access$4(Lcom/example/m6wmr/DishesActivity2;)Ljava/lang/String;
    .locals 1

    .prologue
    .line 136
    iget-object v0, p0, Lcom/example/m6wmr/DishesActivity2;->shopname:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$5(Lcom/example/m6wmr/DishesActivity2;)Landroid/support/v4/view/ViewPager;
    .locals 1

    .prologue
    .line 142
    iget-object v0, p0, Lcom/example/m6wmr/DishesActivity2;->viewPager:Landroid/support/v4/view/ViewPager;

    return-object v0
.end method

.method static synthetic access$6(Lcom/example/m6wmr/DishesActivity2;I)V
    .locals 0

    .prologue
    .line 146
    iput p1, p0, Lcom/example/m6wmr/DishesActivity2;->currentItem:I

    return-void
.end method

.method static synthetic access$7(Lcom/example/m6wmr/DishesActivity2;)Ljava/util/List;
    .locals 1

    .prologue
    .line 141
    iget-object v0, p0, Lcom/example/m6wmr/DishesActivity2;->dotViewsList:Ljava/util/List;

    return-object v0
.end method

.method static synthetic access$8(Lcom/example/m6wmr/DishesActivity2;)Landroid/widget/TextView;
    .locals 1

    .prologue
    .line 92
    iget-object v0, p0, Lcom/example/m6wmr/DishesActivity2;->tv_num:Landroid/widget/TextView;

    return-object v0
.end method

.method static synthetic access$9(Lcom/example/m6wmr/DishesActivity2;)Landroid/widget/ImageView;
    .locals 1

    .prologue
    .line 122
    iget-object v0, p0, Lcom/example/m6wmr/DishesActivity2;->iv_car:Landroid/widget/ImageView;

    return-object v0
.end method

.method private addViewToAnimLayout(Landroid/view/ViewGroup;Landroid/view/View;[I)Landroid/view/View;
    .locals 5
    .param p1, "vg"    # Landroid/view/ViewGroup;
    .param p2, "view"    # Landroid/view/View;
    .param p3, "location"    # [I

    .prologue
    const/4 v4, -0x2

    .line 446
    const/4 v3, 0x0

    aget v1, p3, v3

    .line 447
    .local v1, "x":I
    const/4 v3, 0x1

    aget v2, p3, v3

    .line 448
    .local v2, "y":I
    new-instance v0, Landroid/widget/LinearLayout$LayoutParams;

    invoke-direct {v0, v4, v4}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    .line 451
    .local v0, "lp":Landroid/widget/LinearLayout$LayoutParams;
    iput v1, v0, Landroid/widget/LinearLayout$LayoutParams;->leftMargin:I

    .line 452
    iput v2, v0, Landroid/widget/LinearLayout$LayoutParams;->topMargin:I

    .line 453
    invoke-virtual {p2, v0}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 454
    return-object p2
.end method

.method private createAnimLayout()Landroid/view/ViewGroup;
    .locals 5

    .prologue
    const/4 v4, -0x1

    .line 432
    iget-object v3, p0, Lcom/example/m6wmr/DishesActivity2;->context:Landroid/content/Context;

    check-cast v3, Landroid/app/Activity;

    invoke-virtual {v3}, Landroid/app/Activity;->getWindow()Landroid/view/Window;

    move-result-object v3

    invoke-virtual {v3}, Landroid/view/Window;->getDecorView()Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/view/ViewGroup;

    .line 433
    .local v2, "rootView":Landroid/view/ViewGroup;
    new-instance v0, Landroid/widget/LinearLayout;

    iget-object v3, p0, Lcom/example/m6wmr/DishesActivity2;->context:Landroid/content/Context;

    invoke-direct {v0, v3}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;)V

    .line 434
    .local v0, "animLayout":Landroid/widget/LinearLayout;
    new-instance v1, Landroid/widget/LinearLayout$LayoutParams;

    invoke-direct {v1, v4, v4}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    .line 437
    .local v1, "lp":Landroid/widget/LinearLayout$LayoutParams;
    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 438
    const v3, 0x7fffffff

    invoke-virtual {v0, v3}, Landroid/widget/LinearLayout;->setId(I)V

    .line 439
    const v3, 0x106000d

    invoke-virtual {v0, v3}, Landroid/widget/LinearLayout;->setBackgroundResource(I)V

    .line 440
    invoke-virtual {v2, v0}, Landroid/view/ViewGroup;->addView(Landroid/view/View;)V

    .line 441
    return-object v0
.end method

.method private getAllGoodsBeanList()Ljava/util/List;
    .locals 13
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/List",
            "<",
            "Lbean/GoodsBean;",
            ">;"
        }
    .end annotation

    .prologue
    .line 1293
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    .line 1295
    .local v0, "GoodsBeans":Ljava/util/List;, "Ljava/util/List<Lbean/GoodsBean;>;"
    iget-object v10, p0, Lcom/example/m6wmr/DishesActivity2;->db:Landroid/database/sqlite/SQLiteDatabase;

    new-instance v11, Ljava/lang/StringBuilder;

    const-string v12, "select * from cart where shopid="

    invoke-direct {v11, v12}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget-object v12, p0, Lcom/example/m6wmr/DishesActivity2;->shopid:Ljava/lang/String;

    invoke-virtual {v11, v12}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v11

    invoke-virtual {v11}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v11

    const/4 v12, 0x0

    invoke-virtual {v10, v11, v12}, Landroid/database/sqlite/SQLiteDatabase;->rawQuery(Ljava/lang/String;[Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v2

    .line 1296
    .local v2, "cursor":Landroid/database/Cursor;
    :goto_0
    invoke-interface {v2}, Landroid/database/Cursor;->moveToNext()Z

    move-result v10

    if-nez v10, :cond_0

    .line 1316
    return-object v0

    .line 1297
    :cond_0
    new-instance v5, Lbean/GoodsBean;

    invoke-direct {v5}, Lbean/GoodsBean;-><init>()V

    .line 1298
    .local v5, "goodsBean":Lbean/GoodsBean;
    const-string v10, "goodsid"

    invoke-interface {v2, v10}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v10

    invoke-interface {v2, v10}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v4

    .line 1299
    .local v4, "goodid":Ljava/lang/String;
    const-string v10, "shopid"

    invoke-interface {v2, v10}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v10

    invoke-interface {v2, v10}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v9

    .line 1300
    .local v9, "shopid":Ljava/lang/String;
    const-string v10, "goodsname"

    invoke-interface {v2, v10}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v10

    invoke-interface {v2, v10}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v7

    .line 1301
    .local v7, "goodsname":Ljava/lang/String;
    const-string v10, "goodscount"

    invoke-interface {v2, v10}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v10

    invoke-interface {v2, v10}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v1

    .line 1302
    .local v1, "count":Ljava/lang/String;
    const-string v10, "goodscost"

    invoke-interface {v2, v10}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v10

    invoke-interface {v2, v10}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v6

    .line 1303
    .local v6, "goodscost":Ljava/lang/String;
    const-string v10, "pid"

    invoke-interface {v2, v10}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v10

    invoke-interface {v2, v10}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v8

    .line 1304
    .local v8, "pid":Ljava/lang/String;
    const-string v10, "pnum"

    invoke-interface {v2, v10}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v10

    invoke-interface {v2, v10}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v3

    .line 1306
    .local v3, "ggnum":Ljava/lang/String;
    invoke-virtual {v5, v4}, Lbean/GoodsBean;->setId(Ljava/lang/String;)V

    .line 1307
    invoke-virtual {v5, v9}, Lbean/GoodsBean;->setShopid(Ljava/lang/String;)V

    .line 1308
    invoke-virtual {v5, v7}, Lbean/GoodsBean;->setname(Ljava/lang/String;)V

    .line 1309
    invoke-virtual {v5, v1}, Lbean/GoodsBean;->setcounts(Ljava/lang/String;)V

    .line 1310
    invoke-static {v6}, Ljava/lang/Float;->valueOf(Ljava/lang/String;)Ljava/lang/Float;

    move-result-object v10

    invoke-virtual {v10}, Ljava/lang/Float;->floatValue()F

    move-result v10

    invoke-virtual {v5, v10}, Lbean/GoodsBean;->setcost(F)V

    .line 1311
    invoke-virtual {v5, v8}, Lbean/GoodsBean;->setGgid(Ljava/lang/String;)V

    .line 1312
    invoke-virtual {v5, v3}, Lbean/GoodsBean;->setGgnum(Ljava/lang/String;)V

    .line 1314
    invoke-interface {v0, v5}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_0
.end method

.method public static getDefaultOptions()Lcom/nostra13/universalimageloader/core/DisplayImageOptions;
    .locals 2

    .prologue
    const v1, 0x7f020047

    .line 1091
    new-instance v0, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;

    invoke-direct {v0}, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;-><init>()V

    .line 1092
    .local v0, "b":Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;
    invoke-virtual {v0, v1}, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;->showImageForEmptyUri(I)Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;

    .line 1093
    invoke-virtual {v0, v1}, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;->showImageOnFail(I)Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;

    .line 1094
    const v1, 0x7f0200a2

    invoke-virtual {v0, v1}, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;->showImageOnLoading(I)Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;

    .line 1095
    sget-object v1, Ljava/lang/Boolean;->TRUE:Ljava/lang/Boolean;

    invoke-virtual {v1}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v1

    invoke-virtual {v0, v1}, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;->resetViewBeforeLoading(Z)Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;

    .line 1096
    sget-object v1, Ljava/lang/Boolean;->TRUE:Ljava/lang/Boolean;

    invoke-virtual {v1}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v1

    invoke-virtual {v0, v1}, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;->cacheOnDisk(Z)Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;

    .line 1097
    sget-object v1, Ljava/lang/Boolean;->TRUE:Ljava/lang/Boolean;

    invoke-virtual {v1}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v1

    invoke-virtual {v0, v1}, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;->cacheInMemory(Z)Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;

    .line 1098
    sget-object v1, Lcom/nostra13/universalimageloader/core/assist/ImageScaleType;->EXACTLY_STRETCHED:Lcom/nostra13/universalimageloader/core/assist/ImageScaleType;

    invoke-virtual {v0, v1}, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;->imageScaleType(Lcom/nostra13/universalimageloader/core/assist/ImageScaleType;)Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;

    .line 1099
    sget-object v1, Landroid/graphics/Bitmap$Config;->RGB_565:Landroid/graphics/Bitmap$Config;

    invoke-virtual {v0, v1}, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;->bitmapConfig(Landroid/graphics/Bitmap$Config;)Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;

    move-result-object v1

    invoke-virtual {v1}, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;->build()Lcom/nostra13/universalimageloader/core/DisplayImageOptions;

    move-result-object v1

    return-object v1
.end method

.method private initAdapter()V
    .locals 4

    .prologue
    .line 1139
    iget-object v0, p0, Lcom/example/m6wmr/DishesActivity2;->viewPager:Landroid/support/v4/view/ViewPager;

    new-instance v1, Lcom/example/m6wmr/DishesActivity2$MyAdapter;

    iget-object v2, p0, Lcom/example/m6wmr/DishesActivity2;->listimg:Ljava/util/List;

    iget-object v3, p0, Lcom/example/m6wmr/DishesActivity2;->viewList:Ljava/util/List;

    invoke-direct {v1, p0, v2, v3}, Lcom/example/m6wmr/DishesActivity2$MyAdapter;-><init>(Lcom/example/m6wmr/DishesActivity2;Ljava/util/List;Ljava/util/List;)V

    invoke-virtual {v0, v1}, Landroid/support/v4/view/ViewPager;->setAdapter(Landroid/support/v4/view/PagerAdapter;)V

    .line 1140
    iget-object v0, p0, Lcom/example/m6wmr/DishesActivity2;->viewPager:Landroid/support/v4/view/ViewPager;

    new-instance v1, Lcom/example/m6wmr/DishesActivity2$5;

    invoke-direct {v1, p0}, Lcom/example/m6wmr/DishesActivity2$5;-><init>(Lcom/example/m6wmr/DishesActivity2;)V

    invoke-virtual {v0, v1}, Landroid/support/v4/view/ViewPager;->setOnPageChangeListener(Landroid/support/v4/view/ViewPager$OnPageChangeListener;)V

    .line 1164
    return-void
.end method

.method private initData()V
    .locals 1

    .prologue
    .line 662
    iput-object p0, p0, Lcom/example/m6wmr/DishesActivity2;->context:Landroid/content/Context;

    .line 663
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/example/m6wmr/DishesActivity2;->evaluateBeans:Ljava/util/ArrayList;

    .line 664
    return-void
.end method

.method private initView()V
    .locals 9

    .prologue
    const v8, 0x7f0c007c

    const/4 v7, 0x1

    const/4 v6, 0x0

    .line 784
    const v3, 0x7f0c0001

    invoke-virtual {p0, v3}, Lcom/example/m6wmr/DishesActivity2;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/LinearLayout;

    iput-object v3, p0, Lcom/example/m6wmr/DishesActivity2;->closebtn:Landroid/widget/LinearLayout;

    .line 785
    const v3, 0x7f0c0075

    invoke-virtual {p0, v3}, Lcom/example/m6wmr/DishesActivity2;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/ListView;

    iput-object v3, p0, Lcom/example/m6wmr/DishesActivity2;->lv_dishes_particular:Landroid/widget/ListView;

    .line 786
    iget-object v3, p0, Lcom/example/m6wmr/DishesActivity2;->context:Landroid/content/Context;

    .line 787
    const v4, 0x7f03005d

    .line 786
    invoke-static {v3, v4, v6}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v3

    sput-object v3, Lcom/example/m6wmr/DishesActivity2;->dishes_particular_top:Landroid/view/View;

    .line 788
    sget-object v3, Lcom/example/m6wmr/DishesActivity2;->dishes_particular_top:Landroid/view/View;

    const v4, 0x7f0c0249

    invoke-virtual {v3, v4}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/TextView;

    iput-object v3, p0, Lcom/example/m6wmr/DishesActivity2;->tv_cont:Landroid/widget/TextView;

    .line 789
    sget-object v3, Lcom/example/m6wmr/DishesActivity2;->dishes_particular_top:Landroid/view/View;

    const v4, 0x7f0c024a

    invoke-virtual {v3, v4}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/webkit/WebView;

    iput-object v3, p0, Lcom/example/m6wmr/DishesActivity2;->wb_foodsparticular:Landroid/webkit/WebView;

    .line 792
    const v3, 0x7f0c007e

    invoke-virtual {p0, v3}, Lcom/example/m6wmr/DishesActivity2;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Lmyview/BadgeView;

    iput-object v3, p0, Lcom/example/m6wmr/DishesActivity2;->tv_num:Landroid/widget/TextView;

    .line 793
    const v3, 0x7f0c0078

    invoke-virtual {p0, v3}, Lcom/example/m6wmr/DishesActivity2;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/TextView;

    iput-object v3, p0, Lcom/example/m6wmr/DishesActivity2;->tv_total:Landroid/widget/TextView;

    .line 794
    const v3, 0x7f0c0077

    invoke-virtual {p0, v3}, Lcom/example/m6wmr/DishesActivity2;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/TextView;

    iput-object v3, p0, Lcom/example/m6wmr/DishesActivity2;->tv_total1:Landroid/widget/TextView;

    .line 795
    const v3, 0x7f0c0079

    invoke-virtual {p0, v3}, Lcom/example/m6wmr/DishesActivity2;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/TextView;

    iput-object v3, p0, Lcom/example/m6wmr/DishesActivity2;->tv_bag:Landroid/widget/TextView;

    .line 797
    iget-object v3, p0, Lcom/example/m6wmr/DishesActivity2;->context:Landroid/content/Context;

    const-string v4, "pscost"

    const/4 v5, 0x0

    invoke-virtual {v3, v4, v5}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v1

    .line 798
    .local v1, "sharedPreferences":Landroid/content/SharedPreferences;
    const-string v3, "ps"

    const-string v4, ""

    invoke-interface {v1, v3, v4}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    .line 799
    .local v2, "uid":Ljava/lang/String;
    iget-object v3, p0, Lcom/example/m6wmr/DishesActivity2;->tv_bag:Landroid/widget/TextView;

    new-instance v4, Ljava/lang/StringBuilder;

    const-string v5, "\u914d\u9001\u8d39 :"

    invoke-direct {v4, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v4, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    const-string v5, "\u5143"

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 800
    const v3, 0x7f0c006c

    invoke-virtual {p0, v3}, Lcom/example/m6wmr/DishesActivity2;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/TextView;

    iput-object v3, p0, Lcom/example/m6wmr/DishesActivity2;->tv_name:Landroid/widget/TextView;

    .line 801
    const v3, 0x7f0c006e

    invoke-virtual {p0, v3}, Lcom/example/m6wmr/DishesActivity2;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/TextView;

    iput-object v3, p0, Lcom/example/m6wmr/DishesActivity2;->tv_eva:Landroid/widget/TextView;

    .line 803
    const v3, 0x7f0c0073

    invoke-virtual {p0, v3}, Lcom/example/m6wmr/DishesActivity2;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/TextView;

    iput-object v3, p0, Lcom/example/m6wmr/DishesActivity2;->tv_count:Landroid/widget/TextView;

    .line 804
    const v3, 0x7f0c0071

    invoke-virtual {p0, v3}, Lcom/example/m6wmr/DishesActivity2;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/TextView;

    iput-object v3, p0, Lcom/example/m6wmr/DishesActivity2;->tv_price:Landroid/widget/TextView;

    .line 805
    const v3, 0x7f0c006d

    invoke-virtual {p0, v3}, Lcom/example/m6wmr/DishesActivity2;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/TextView;

    iput-object v3, p0, Lcom/example/m6wmr/DishesActivity2;->tv_sal:Landroid/widget/TextView;

    .line 806
    const v3, 0x7f0c0074

    invoke-virtual {p0, v3}, Lcom/example/m6wmr/DishesActivity2;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/ImageView;

    iput-object v3, p0, Lcom/example/m6wmr/DishesActivity2;->iv_add:Landroid/widget/ImageView;

    .line 807
    const v3, 0x7f0c0072

    invoke-virtual {p0, v3}, Lcom/example/m6wmr/DishesActivity2;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/ImageView;

    iput-object v3, p0, Lcom/example/m6wmr/DishesActivity2;->iv_del:Landroid/widget/ImageView;

    .line 808
    const v3, 0x7f0c0069

    invoke-virtual {p0, v3}, Lcom/example/m6wmr/DishesActivity2;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/support/v4/view/ViewPager;

    iput-object v3, p0, Lcom/example/m6wmr/DishesActivity2;->viewPager:Landroid/support/v4/view/ViewPager;

    .line 810
    iget-object v3, p0, Lcom/example/m6wmr/DishesActivity2;->viewPager:Landroid/support/v4/view/ViewPager;

    invoke-virtual {v3, v7}, Landroid/support/v4/view/ViewPager;->setFocusable(Z)V

    .line 811
    iget-object v3, p0, Lcom/example/m6wmr/DishesActivity2;->viewPager:Landroid/support/v4/view/ViewPager;

    invoke-virtual {v3, v7}, Landroid/support/v4/view/ViewPager;->setFocusableInTouchMode(Z)V

    .line 812
    iget-object v3, p0, Lcom/example/m6wmr/DishesActivity2;->viewPager:Landroid/support/v4/view/ViewPager;

    invoke-virtual {v3}, Landroid/support/v4/view/ViewPager;->requestFocus()Z

    .line 813
    iget-object v3, p0, Lcom/example/m6wmr/DishesActivity2;->viewPager:Landroid/support/v4/view/ViewPager;

    new-instance v4, Lcom/example/m6wmr/DishesActivity2$MyPageChangeListener;

    invoke-direct {v4, p0, v6}, Lcom/example/m6wmr/DishesActivity2$MyPageChangeListener;-><init>(Lcom/example/m6wmr/DishesActivity2;Lcom/example/m6wmr/DishesActivity2$MyPageChangeListener;)V

    invoke-virtual {v3, v4}, Landroid/support/v4/view/ViewPager;->setOnPageChangeListener(Landroid/support/v4/view/ViewPager$OnPageChangeListener;)V

    .line 814
    const v3, 0x7f0c000a

    invoke-virtual {p0, v3}, Lcom/example/m6wmr/DishesActivity2;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/ImageView;

    iput-object v3, p0, Lcom/example/m6wmr/DishesActivity2;->iv_car:Landroid/widget/ImageView;

    .line 815
    const v3, 0x7f0c006b

    invoke-virtual {p0, v3}, Lcom/example/m6wmr/DishesActivity2;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/LinearLayout;

    iput-object v3, p0, Lcom/example/m6wmr/DishesActivity2;->ll_guige:Landroid/widget/LinearLayout;

    .line 817
    const v3, 0x7f0c0076

    invoke-virtual {p0, v3}, Lcom/example/m6wmr/DishesActivity2;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/LinearLayout;

    iput-object v3, p0, Lcom/example/m6wmr/DishesActivity2;->ll_kkk:Landroid/widget/LinearLayout;

    .line 818
    const v3, 0x7f0c007d

    invoke-virtual {p0, v3}, Lcom/example/m6wmr/DishesActivity2;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/LinearLayout;

    iput-object v3, p0, Lcom/example/m6wmr/DishesActivity2;->ll_kk2:Landroid/widget/LinearLayout;

    .line 819
    invoke-virtual {p0, v8}, Lcom/example/m6wmr/DishesActivity2;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/RelativeLayout;

    iput-object v3, p0, Lcom/example/m6wmr/DishesActivity2;->rr_kkk:Landroid/widget/RelativeLayout;

    .line 821
    const v3, 0x7f0c007a

    invoke-virtual {p0, v3}, Lcom/example/m6wmr/DishesActivity2;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/LinearLayout;

    iput-object v3, p0, Lcom/example/m6wmr/DishesActivity2;->ll_pay:Landroid/widget/LinearLayout;

    .line 824
    const v3, 0x7f0c007f

    invoke-virtual {p0, v3}, Lcom/example/m6wmr/DishesActivity2;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/ListView;

    iput-object v3, p0, Lcom/example/m6wmr/DishesActivity2;->list:Landroid/widget/ListView;

    .line 825
    iget-object v3, p0, Lcom/example/m6wmr/DishesActivity2;->context:Landroid/content/Context;

    const v4, 0x7f0300ba

    invoke-static {v3, v4, v6}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v0

    .line 826
    .local v0, "dishes_particular_top":Landroid/view/View;
    iget-object v3, p0, Lcom/example/m6wmr/DishesActivity2;->list:Landroid/widget/ListView;

    invoke-virtual {v3, v0}, Landroid/widget/ListView;->addHeaderView(Landroid/view/View;)V

    .line 827
    const v3, 0x7f0c036d

    invoke-virtual {v0, v3}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/TextView;

    iput-object v3, p0, Lcom/example/m6wmr/DishesActivity2;->del:Landroid/widget/TextView;

    .line 828
    const v3, 0x7f0c00a8

    invoke-virtual {v0, v3}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/TextView;

    iput-object v3, p0, Lcom/example/m6wmr/DishesActivity2;->close:Landroid/widget/TextView;

    .line 829
    invoke-virtual {p0, v8}, Lcom/example/m6wmr/DishesActivity2;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/RelativeLayout;

    iput-object v3, p0, Lcom/example/m6wmr/DishesActivity2;->search:Landroid/widget/RelativeLayout;

    .line 830
    return-void
.end method

.method private setAnim(Landroid/view/View;[I)V
    .locals 19
    .param p1, "v"    # Landroid/view/View;
    .param p2, "start_location"    # [I

    .prologue
    .line 369
    new-instance v3, Landroid/view/animation/ScaleAnimation;

    const/high16 v4, 0x3f000000    # 0.5f

    const/high16 v5, 0x3fc00000    # 1.5f

    const/high16 v6, 0x3f000000    # 0.5f

    const/high16 v7, 0x3fc00000    # 1.5f

    const/4 v8, 0x1

    const/high16 v9, 0x3f000000    # 0.5f

    const/4 v10, 0x1

    const/high16 v11, 0x3f000000    # 0.5f

    invoke-direct/range {v3 .. v11}, Landroid/view/animation/ScaleAnimation;-><init>(FFFFIFIF)V

    .line 370
    .local v3, "mScaleAnimation":Landroid/view/animation/Animation;
    move-object/from16 v0, p0

    iget v4, v0, Lcom/example/m6wmr/DishesActivity2;->AnimationDuration:I

    int-to-long v4, v4

    invoke-virtual {v3, v4, v5}, Landroid/view/animation/Animation;->setDuration(J)V

    .line 371
    const/4 v4, 0x1

    invoke-virtual {v3, v4}, Landroid/view/animation/Animation;->setFillAfter(Z)V

    .line 374
    const/4 v4, 0x0

    move-object/from16 v0, p0

    iput-object v4, v0, Lcom/example/m6wmr/DishesActivity2;->anim_mask_layout:Landroid/view/ViewGroup;

    .line 375
    invoke-direct/range {p0 .. p0}, Lcom/example/m6wmr/DishesActivity2;->createAnimLayout()Landroid/view/ViewGroup;

    move-result-object v4

    move-object/from16 v0, p0

    iput-object v4, v0, Lcom/example/m6wmr/DishesActivity2;->anim_mask_layout:Landroid/view/ViewGroup;

    .line 376
    move-object/from16 v0, p0

    iget-object v4, v0, Lcom/example/m6wmr/DishesActivity2;->anim_mask_layout:Landroid/view/ViewGroup;

    move-object/from16 v0, p1

    invoke-virtual {v4, v0}, Landroid/view/ViewGroup;->addView(Landroid/view/View;)V

    .line 377
    move-object/from16 v0, p0

    iget-object v4, v0, Lcom/example/m6wmr/DishesActivity2;->anim_mask_layout:Landroid/view/ViewGroup;

    move-object/from16 v0, p0

    move-object/from16 v1, p1

    move-object/from16 v2, p2

    invoke-direct {v0, v4, v1, v2}, Lcom/example/m6wmr/DishesActivity2;->addViewToAnimLayout(Landroid/view/ViewGroup;Landroid/view/View;[I)Landroid/view/View;

    move-result-object v18

    .line 379
    .local v18, "view":Landroid/view/View;
    const/4 v4, 0x2

    new-array v14, v4, [I

    .line 380
    .local v14, "end_location":[I
    move-object/from16 v0, p0

    iget-object v4, v0, Lcom/example/m6wmr/DishesActivity2;->tv_num:Landroid/widget/TextView;

    invoke-virtual {v4, v14}, Landroid/widget/TextView;->getLocationInWindow([I)V

    .line 383
    const/4 v4, 0x0

    aget v4, p2, v4

    rsub-int/lit8 v4, v4, 0x0

    add-int/lit8 v12, v4, 0x50

    .line 384
    .local v12, "endX":I
    const/4 v4, 0x1

    aget v4, v14, v4

    const/4 v5, 0x1

    aget v5, p2, v5

    sub-int v13, v4, v5

    .line 385
    .local v13, "endY":I
    new-instance v16, Landroid/view/animation/TranslateAnimation;

    const/4 v4, 0x0

    .line 386
    int-to-float v5, v12

    const/4 v6, 0x0

    const/4 v7, 0x0

    .line 385
    move-object/from16 v0, v16

    invoke-direct {v0, v4, v5, v6, v7}, Landroid/view/animation/TranslateAnimation;-><init>(FFFF)V

    .line 387
    .local v16, "translateAnimationX":Landroid/view/animation/TranslateAnimation;
    new-instance v4, Landroid/view/animation/LinearInterpolator;

    invoke-direct {v4}, Landroid/view/animation/LinearInterpolator;-><init>()V

    move-object/from16 v0, v16

    invoke-virtual {v0, v4}, Landroid/view/animation/TranslateAnimation;->setInterpolator(Landroid/view/animation/Interpolator;)V

    .line 388
    const/4 v4, 0x0

    move-object/from16 v0, v16

    invoke-virtual {v0, v4}, Landroid/view/animation/TranslateAnimation;->setRepeatCount(I)V

    .line 389
    const/4 v4, 0x1

    move-object/from16 v0, v16

    invoke-virtual {v0, v4}, Landroid/view/animation/TranslateAnimation;->setFillAfter(Z)V

    .line 391
    new-instance v17, Landroid/view/animation/TranslateAnimation;

    const/4 v4, 0x0

    const/4 v5, 0x0

    .line 392
    const/4 v6, 0x0

    int-to-float v7, v13

    .line 391
    move-object/from16 v0, v17

    invoke-direct {v0, v4, v5, v6, v7}, Landroid/view/animation/TranslateAnimation;-><init>(FFFF)V

    .line 393
    .local v17, "translateAnimationY":Landroid/view/animation/TranslateAnimation;
    new-instance v4, Landroid/view/animation/AccelerateInterpolator;

    invoke-direct {v4}, Landroid/view/animation/AccelerateInterpolator;-><init>()V

    move-object/from16 v0, v17

    invoke-virtual {v0, v4}, Landroid/view/animation/TranslateAnimation;->setInterpolator(Landroid/view/animation/Interpolator;)V

    .line 394
    const/4 v4, 0x0

    move-object/from16 v0, v17

    invoke-virtual {v0, v4}, Landroid/view/animation/TranslateAnimation;->setRepeatCount(I)V

    .line 395
    const/4 v4, 0x1

    move-object/from16 v0, v16

    invoke-virtual {v0, v4}, Landroid/view/animation/TranslateAnimation;->setFillAfter(Z)V

    .line 396
    new-instance v15, Landroid/view/animation/AnimationSet;

    const/4 v4, 0x0

    invoke-direct {v15, v4}, Landroid/view/animation/AnimationSet;-><init>(Z)V

    .line 397
    .local v15, "set":Landroid/view/animation/AnimationSet;
    const/4 v4, 0x0

    invoke-virtual {v15, v4}, Landroid/view/animation/AnimationSet;->setFillAfter(Z)V

    .line 398
    invoke-virtual {v15, v3}, Landroid/view/animation/AnimationSet;->addAnimation(Landroid/view/animation/Animation;)V

    .line 399
    move-object/from16 v0, v17

    invoke-virtual {v15, v0}, Landroid/view/animation/AnimationSet;->addAnimation(Landroid/view/animation/Animation;)V

    .line 400
    invoke-virtual/range {v15 .. v16}, Landroid/view/animation/AnimationSet;->addAnimation(Landroid/view/animation/Animation;)V

    .line 401
    move-object/from16 v0, p0

    iget v4, v0, Lcom/example/m6wmr/DishesActivity2;->AnimationDuration:I

    int-to-long v4, v4

    invoke-virtual {v15, v4, v5}, Landroid/view/animation/AnimationSet;->setDuration(J)V

    .line 402
    move-object/from16 v0, v18

    invoke-virtual {v0, v15}, Landroid/view/View;->startAnimation(Landroid/view/animation/Animation;)V

    .line 404
    new-instance v4, Lcom/example/m6wmr/DishesActivity2$3;

    move-object/from16 v0, p0

    move-object/from16 v1, p1

    invoke-direct {v4, v0, v1}, Lcom/example/m6wmr/DishesActivity2$3;-><init>(Lcom/example/m6wmr/DishesActivity2;Landroid/view/View;)V

    invoke-virtual {v15, v4}, Landroid/view/animation/AnimationSet;->setAnimationListener(Landroid/view/animation/Animation$AnimationListener;)V

    .line 423
    return-void
.end method

.method private setData()V
    .locals 3

    .prologue
    .line 656
    iget-object v1, p0, Lcom/example/m6wmr/DishesActivity2;->lv_dishes_particular:Landroid/widget/ListView;

    sget-object v2, Lcom/example/m6wmr/DishesActivity2;->dishes_particular_top:Landroid/view/View;

    invoke-virtual {v1, v2}, Landroid/widget/ListView;->addHeaderView(Landroid/view/View;)V

    .line 657
    sget-object v1, Lcom/example/m6wmr/DishesActivity2;->dishes_particular_top:Landroid/view/View;

    const v2, 0x7f0c024b

    invoke-virtual {v1, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    .line 658
    .local v0, "eva":Landroid/widget/TextView;
    new-instance v1, Ljava/lang/StringBuilder;

    const-string v2, "\u8bc4\u8bba\u4eba\u6570 "

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget-object v2, p0, Lcom/example/m6wmr/DishesActivity2;->listcom:Ljava/util/List;

    invoke-interface {v2}, Ljava/util/List;->size()I

    move-result v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 659
    return-void
.end method

.method public static seth(Landroid/widget/ListView;)V
    .locals 8
    .param p0, "listView"    # Landroid/widget/ListView;

    .prologue
    const/4 v7, 0x0

    .line 894
    sget-object v6, Lcom/example/m6wmr/DishesActivity2;->dishes_particular_top:Landroid/view/View;

    invoke-virtual {v6, v7, v7}, Landroid/view/View;->measure(II)V

    .line 895
    const/4 v0, 0x0

    .line 897
    .local v0, "headheight":I
    sget-object v6, Lcom/example/m6wmr/DishesActivity2;->dishes_particular_top:Landroid/view/View;

    invoke-virtual {v6}, Landroid/view/View;->getMeasuredHeight()I

    move-result v0

    .line 899
    if-nez p0, :cond_1

    .line 919
    :cond_0
    :goto_0
    return-void

    .line 901
    :cond_1
    invoke-virtual {p0}, Landroid/widget/ListView;->getAdapter()Landroid/widget/ListAdapter;

    move-result-object v2

    .line 902
    .local v2, "listAdapter":Landroid/widget/ListAdapter;
    if-eqz v2, :cond_0

    .line 906
    const/4 v5, 0x0

    .line 907
    .local v5, "totalHeight":I
    const/4 v1, 0x0

    .local v1, "i":I
    :goto_1
    invoke-interface {v2}, Landroid/widget/ListAdapter;->getCount()I

    move-result v6

    if-lt v1, v6, :cond_2

    .line 915
    invoke-virtual {p0}, Landroid/widget/ListView;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v4

    .line 917
    .local v4, "params":Landroid/view/ViewGroup$LayoutParams;
    invoke-virtual {p0}, Landroid/widget/ListView;->getDividerHeight()I

    move-result v6

    invoke-interface {v2}, Landroid/widget/ListAdapter;->getCount()I

    move-result v7

    add-int/lit8 v7, v7, -0x1

    mul-int/2addr v6, v7

    add-int/2addr v6, v5

    add-int/2addr v6, v0

    .line 916
    iput v6, v4, Landroid/view/ViewGroup$LayoutParams;->height:I

    .line 918
    invoke-virtual {p0, v4}, Landroid/widget/ListView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    goto :goto_0

    .line 908
    .end local v4    # "params":Landroid/view/ViewGroup$LayoutParams;
    :cond_2
    const/4 v6, 0x0

    invoke-interface {v2, v1, v6, p0}, Landroid/widget/ListAdapter;->getView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v3

    .line 909
    .local v3, "listItem":Landroid/view/View;
    invoke-virtual {v3, v7, v7}, Landroid/view/View;->measure(II)V

    .line 910
    invoke-virtual {v3}, Landroid/view/View;->getMeasuredHeight()I

    move-result v6

    add-int/2addr v5, v6

    .line 907
    add-int/lit8 v1, v1, 0x1

    goto :goto_1
.end method

.method private setoncliclistner()V
    .locals 3

    .prologue
    const/4 v2, 0x0

    .line 667
    iget-object v0, p0, Lcom/example/m6wmr/DishesActivity2;->closebtn:Landroid/widget/LinearLayout;

    new-instance v1, Lcom/example/m6wmr/DishesActivity2$mOncliclistener;

    invoke-direct {v1, p0, v2}, Lcom/example/m6wmr/DishesActivity2$mOncliclistener;-><init>(Lcom/example/m6wmr/DishesActivity2;Lcom/example/m6wmr/DishesActivity2$mOncliclistener;)V

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 669
    iget-object v0, p0, Lcom/example/m6wmr/DishesActivity2;->rr_kkk:Landroid/widget/RelativeLayout;

    new-instance v1, Lcom/example/m6wmr/DishesActivity2$mOncliclistener;

    invoke-direct {v1, p0, v2}, Lcom/example/m6wmr/DishesActivity2$mOncliclistener;-><init>(Lcom/example/m6wmr/DishesActivity2;Lcom/example/m6wmr/DishesActivity2$mOncliclistener;)V

    invoke-virtual {v0, v1}, Landroid/widget/RelativeLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 670
    iget-object v0, p0, Lcom/example/m6wmr/DishesActivity2;->ll_pay:Landroid/widget/LinearLayout;

    new-instance v1, Lcom/example/m6wmr/DishesActivity2$mOncliclistener;

    invoke-direct {v1, p0, v2}, Lcom/example/m6wmr/DishesActivity2$mOncliclistener;-><init>(Lcom/example/m6wmr/DishesActivity2;Lcom/example/m6wmr/DishesActivity2$mOncliclistener;)V

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 671
    return-void
.end method


# virtual methods
.method protected APPWidth()I
    .locals 3

    .prologue
    .line 462
    new-instance v0, Landroid/util/DisplayMetrics;

    invoke-direct {v0}, Landroid/util/DisplayMetrics;-><init>()V

    .line 463
    .local v0, "metric":Landroid/util/DisplayMetrics;
    invoke-virtual {p0}, Lcom/example/m6wmr/DishesActivity2;->getWindowManager()Landroid/view/WindowManager;

    move-result-object v2

    invoke-interface {v2}, Landroid/view/WindowManager;->getDefaultDisplay()Landroid/view/Display;

    move-result-object v2

    invoke-virtual {v2, v0}, Landroid/view/Display;->getMetrics(Landroid/util/DisplayMetrics;)V

    .line 464
    iget v1, v0, Landroid/util/DisplayMetrics;->widthPixels:I

    .line 465
    .local v1, "width":I
    return v1
.end method

.method public add(I)V
    .locals 23
    .param p1, "position"    # I

    .prologue
    .line 1320
    invoke-direct/range {p0 .. p0}, Lcom/example/m6wmr/DishesActivity2;->getAllGoodsBeanList()Ljava/util/List;

    move-result-object v18

    move-object/from16 v0, v18

    move/from16 v1, p1

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v13

    check-cast v13, Lbean/GoodsBean;

    .line 1322
    .local v13, "mygoods":Lbean/GoodsBean;
    invoke-virtual {v13}, Lbean/GoodsBean;->getId()Ljava/lang/String;

    move-result-object v8

    .line 1323
    .local v8, "gid":Ljava/lang/String;
    invoke-virtual {v13}, Lbean/GoodsBean;->getname()Ljava/lang/String;

    move-result-object v14

    .line 1324
    .local v14, "name":Ljava/lang/String;
    invoke-virtual {v13}, Lbean/GoodsBean;->getGgid()Ljava/lang/String;

    move-result-object v18

    if-nez v18, :cond_3

    .line 1325
    const-string v18, "\u6dfb\u52a0\u5546\u54c1------------------"

    const-string v19, "\u65e0\u89c4\u683c"

    invoke-static/range {v18 .. v19}, Lmyapp/Mylog;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 1326
    new-instance v12, Landroid/os/Message;

    invoke-direct {v12}, Landroid/os/Message;-><init>()V

    .line 1327
    .local v12, "msg":Landroid/os/Message;
    iput-object v8, v12, Landroid/os/Message;->obj:Ljava/lang/Object;

    .line 1328
    const/16 v18, 0x23

    move/from16 v0, v18

    iput v0, v12, Landroid/os/Message;->arg1:I

    .line 1329
    sget-object v18, Lframent/FramentOrder;->h:Landroid/os/Handler;

    move-object/from16 v0, v18

    invoke-virtual {v0, v12}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    .line 1331
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesActivity2;->helper:Ldbclass/DBOpenHelper;

    move-object/from16 v18, v0

    invoke-virtual/range {v18 .. v18}, Ldbclass/DBOpenHelper;->getReadableDatabase()Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v18

    .line 1332
    new-instance v19, Ljava/lang/StringBuilder;

    const-string v20, "select * from cart where goodsid="

    invoke-direct/range {v19 .. v20}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    move-object/from16 v0, v19

    invoke-virtual {v0, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v19

    invoke-virtual/range {v19 .. v19}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v19

    const/16 v20, 0x0

    .line 1331
    invoke-virtual/range {v18 .. v20}, Landroid/database/sqlite/SQLiteDatabase;->rawQuery(Ljava/lang/String;[Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v18

    move-object/from16 v0, v18

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/example/m6wmr/DishesActivity2;->cursor:Landroid/database/Cursor;

    .line 1333
    const/4 v10, 0x0

    .line 1334
    .local v10, "goodscount":I
    const/4 v9, 0x0

    .line 1335
    .local v9, "goodscostone":F
    const/4 v4, 0x1

    .line 1336
    .local v4, "checkgd":Z
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesActivity2;->cursor:Landroid/database/Cursor;

    move-object/from16 v18, v0

    if-eqz v18, :cond_2

    .line 1337
    :goto_0
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesActivity2;->cursor:Landroid/database/Cursor;

    move-object/from16 v18, v0

    invoke-interface/range {v18 .. v18}, Landroid/database/Cursor;->moveToNext()Z

    move-result v18

    if-nez v18, :cond_1

    .line 1349
    :goto_1
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesActivity2;->cursor:Landroid/database/Cursor;

    move-object/from16 v18, v0

    invoke-interface/range {v18 .. v18}, Landroid/database/Cursor;->close()V

    .line 1350
    add-int/lit8 v15, v10, 0x1

    .line 1352
    .local v15, "newgoodcount":I
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesActivity2;->cv:Landroid/content/ContentValues;

    move-object/from16 v18, v0

    const-string v19, "goodscount"

    invoke-static {v15}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v20

    invoke-virtual/range {v18 .. v20}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Integer;)V

    .line 1353
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesActivity2;->db:Landroid/database/sqlite/SQLiteDatabase;

    move-object/from16 v18, v0

    const-string v19, "cart"

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesActivity2;->cv:Landroid/content/ContentValues;

    move-object/from16 v20, v0

    new-instance v21, Ljava/lang/StringBuilder;

    const-string v22, "goodsid = \'"

    invoke-direct/range {v21 .. v22}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    move-object/from16 v0, v21

    invoke-virtual {v0, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v21

    const-string v22, "\'"

    invoke-virtual/range {v21 .. v22}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v21

    invoke-virtual/range {v21 .. v21}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v21

    const/16 v22, 0x0

    invoke-virtual/range {v18 .. v22}, Landroid/database/sqlite/SQLiteDatabase;->update(Ljava/lang/String;Landroid/content/ContentValues;Ljava/lang/String;[Ljava/lang/String;)I

    .line 1355
    add-int/lit8 v18, p1, 0x1

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesActivity2;->list:Landroid/widget/ListView;

    move-object/from16 v19, v0

    move-object/from16 v0, p0

    move/from16 v1, v18

    move-object/from16 v2, v19

    invoke-virtual {v0, v1, v2}, Lcom/example/m6wmr/DishesActivity2;->getViewByPosition(ILandroid/widget/ListView;)Landroid/view/View;

    move-result-object v17

    .line 1356
    .local v17, "tempview":Landroid/view/View;
    const v18, 0x7f0c0081

    invoke-virtual/range {v17 .. v18}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v11

    check-cast v11, Landroid/widget/TextView;

    .line 1357
    .local v11, "goodscoust":Landroid/widget/TextView;
    invoke-static {v15}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v18

    move-object/from16 v0, v18

    invoke-virtual {v11, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 1359
    const v18, 0x7f0c0080

    invoke-virtual/range {v17 .. v18}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v6

    check-cast v6, Landroid/widget/ImageView;

    .line 1360
    .local v6, "delbtn":Landroid/widget/ImageView;
    const/16 v18, 0x0

    move/from16 v0, v18

    invoke-virtual {v6, v0}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 1361
    const/16 v18, 0x0

    move/from16 v0, v18

    invoke-virtual {v11, v0}, Landroid/widget/TextView;->setVisibility(I)V

    .line 1363
    const-string v18, "ShopshowACtivity"

    new-instance v19, Ljava/lang/StringBuilder;

    const-string v20, "addcart+\u935f\u55d7\u6427\u93c1\u4f34\u567a"

    invoke-direct/range {v19 .. v20}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    move-object/from16 v0, v19

    invoke-virtual {v0, v15}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v19

    invoke-virtual/range {v19 .. v19}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v19

    invoke-static/range {v18 .. v19}, Lmyapp/Mylog;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 1365
    move-object/from16 v0, p0

    iget v0, v0, Lcom/example/m6wmr/DishesActivity2;->sumcart:I

    move/from16 v18, v0

    add-int/lit8 v18, v18, 0x1

    move/from16 v0, v18

    move-object/from16 v1, p0

    iput v0, v1, Lcom/example/m6wmr/DishesActivity2;->sumcart:I

    .line 1366
    const-string v18, "sumcart--------------"

    new-instance v19, Ljava/lang/StringBuilder;

    move-object/from16 v0, p0

    iget v0, v0, Lcom/example/m6wmr/DishesActivity2;->sumcart:I

    move/from16 v20, v0

    invoke-static/range {v20 .. v20}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v20

    invoke-direct/range {v19 .. v20}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual/range {v19 .. v19}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v19

    invoke-static/range {v18 .. v19}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 1367
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesActivity2;->tv_num:Landroid/widget/TextView;

    move-object/from16 v18, v0

    move-object/from16 v0, p0

    iget v0, v0, Lcom/example/m6wmr/DishesActivity2;->sumcart:I

    move/from16 v19, v0

    invoke-static/range {v19 .. v19}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v19

    invoke-virtual/range {v18 .. v19}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 1368
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesActivity2;->goodsid:Ljava/lang/String;

    move-object/from16 v18, v0

    move-object/from16 v0, v18

    invoke-virtual {v8, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v18

    if-eqz v18, :cond_0

    .line 1369
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesActivity2;->tv_count:Landroid/widget/TextView;

    move-object/from16 v18, v0

    invoke-static {v15}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v19

    invoke-virtual/range {v18 .. v19}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 1371
    :cond_0
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesActivity2;->search:Landroid/widget/RelativeLayout;

    move-object/from16 v18, v0

    const v19, 0x7f02009e

    invoke-virtual/range {v18 .. v19}, Landroid/widget/RelativeLayout;->setBackgroundResource(I)V

    .line 1372
    move-object/from16 v0, p0

    iget v0, v0, Lcom/example/m6wmr/DishesActivity2;->sumcartcost:F

    move/from16 v18, v0

    add-float v18, v18, v9

    move/from16 v0, v18

    move-object/from16 v1, p0

    iput v0, v1, Lcom/example/m6wmr/DishesActivity2;->sumcartcost:F

    .line 1373
    move-object/from16 v0, p0

    iget v0, v0, Lcom/example/m6wmr/DishesActivity2;->sumcartcost:F

    move/from16 v18, v0

    const/high16 v19, 0x42c80000    # 100.0f

    mul-float v18, v18, v19

    invoke-static/range {v18 .. v18}, Ljava/lang/Math;->round(F)I

    move-result v18

    move/from16 v0, v18

    int-to-float v0, v0

    move/from16 v18, v0

    const/high16 v19, 0x42c80000    # 100.0f

    div-float v18, v18, v19

    move/from16 v0, v18

    move-object/from16 v1, p0

    iput v0, v1, Lcom/example/m6wmr/DishesActivity2;->sumcartcost:F

    .line 1374
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesActivity2;->tv_total:Landroid/widget/TextView;

    move-object/from16 v18, v0

    new-instance v19, Ljava/lang/StringBuilder;

    invoke-direct/range {v19 .. v19}, Ljava/lang/StringBuilder;-><init>()V

    move-object/from16 v0, p0

    iget v0, v0, Lcom/example/m6wmr/DishesActivity2;->sumcartcost:F

    move/from16 v20, v0

    invoke-static/range {v20 .. v20}, Ljava/lang/String;->valueOf(F)Ljava/lang/String;

    move-result-object v20

    invoke-virtual/range {v19 .. v20}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v19

    invoke-virtual/range {v19 .. v19}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v19

    invoke-virtual/range {v18 .. v19}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 1421
    .end local v6    # "delbtn":Landroid/widget/ImageView;
    .end local v10    # "goodscount":I
    .end local v12    # "msg":Landroid/os/Message;
    :goto_2
    return-void

    .line 1338
    .end local v11    # "goodscoust":Landroid/widget/TextView;
    .end local v15    # "newgoodcount":I
    .end local v17    # "tempview":Landroid/view/View;
    .restart local v10    # "goodscount":I
    .restart local v12    # "msg":Landroid/os/Message;
    :cond_1
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesActivity2;->cursor:Landroid/database/Cursor;

    move-object/from16 v18, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesActivity2;->cursor:Landroid/database/Cursor;

    move-object/from16 v19, v0

    .line 1339
    const-string v20, "goodscount"

    invoke-interface/range {v19 .. v20}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v19

    .line 1338
    invoke-interface/range {v18 .. v19}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v18

    invoke-static/range {v18 .. v18}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

    move-result-object v18

    invoke-virtual/range {v18 .. v18}, Ljava/lang/Integer;->intValue()I

    move-result v10

    .line 1340
    const/4 v4, 0x0

    .line 1341
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesActivity2;->cursor:Landroid/database/Cursor;

    move-object/from16 v18, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesActivity2;->cursor:Landroid/database/Cursor;

    move-object/from16 v19, v0

    .line 1342
    const-string v20, "goodscost"

    invoke-interface/range {v19 .. v20}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v19

    .line 1341
    invoke-interface/range {v18 .. v19}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v18

    invoke-static/range {v18 .. v18}, Ljava/lang/Float;->valueOf(Ljava/lang/String;)Ljava/lang/Float;

    move-result-object v18

    invoke-virtual/range {v18 .. v18}, Ljava/lang/Float;->floatValue()F

    move-result v5

    .line 1343
    .local v5, "dajia":F
    const/high16 v18, 0x42c80000    # 100.0f

    mul-float v18, v18, v5

    invoke-static/range {v18 .. v18}, Ljava/lang/Math;->round(F)I

    move-result v18

    move/from16 v0, v18

    int-to-float v0, v0

    move/from16 v18, v0

    const/high16 v19, 0x42c80000    # 100.0f

    div-float v9, v18, v19

    goto/16 :goto_0

    .line 1347
    .end local v5    # "dajia":F
    :cond_2
    const/4 v4, 0x1

    goto/16 :goto_1

    .line 1377
    .end local v4    # "checkgd":Z
    .end local v9    # "goodscostone":F
    .end local v10    # "goodscount":I
    .end local v12    # "msg":Landroid/os/Message;
    :cond_3
    const-string v18, "\u6dfb\u52a0\u5546\u54c1---------------------------------"

    const-string v19, "\u6709\u89c4\u683c"

    invoke-static/range {v18 .. v19}, Lmyapp/Mylog;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 1378
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesActivity2;->goodsid:Ljava/lang/String;

    move-object/from16 v18, v0

    move-object/from16 v0, v18

    invoke-virtual {v0, v8}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    .line 1381
    invoke-virtual {v13}, Lbean/GoodsBean;->getGgid()Ljava/lang/String;

    move-result-object v7

    .line 1382
    .local v7, "ggid":Ljava/lang/String;
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesActivity2;->helper:Ldbclass/DBOpenHelper;

    move-object/from16 v18, v0

    invoke-virtual/range {v18 .. v18}, Ldbclass/DBOpenHelper;->getReadableDatabase()Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v18

    .line 1383
    new-instance v19, Ljava/lang/StringBuilder;

    const-string v20, "select * from cart where pid="

    invoke-direct/range {v19 .. v20}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    move-object/from16 v0, v19

    invoke-virtual {v0, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v19

    invoke-virtual/range {v19 .. v19}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v19

    const/16 v20, 0x0

    .line 1382
    invoke-virtual/range {v18 .. v20}, Landroid/database/sqlite/SQLiteDatabase;->rawQuery(Ljava/lang/String;[Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v18

    move-object/from16 v0, v18

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/example/m6wmr/DishesActivity2;->cursor:Landroid/database/Cursor;

    .line 1384
    const/16 v16, 0x0

    .line 1385
    .local v16, "pnum":I
    const/4 v9, 0x0

    .line 1386
    .restart local v9    # "goodscostone":F
    const/4 v4, 0x1

    .line 1387
    .restart local v4    # "checkgd":Z
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesActivity2;->cursor:Landroid/database/Cursor;

    move-object/from16 v18, v0

    if-eqz v18, :cond_5

    .line 1388
    :goto_3
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesActivity2;->cursor:Landroid/database/Cursor;

    move-object/from16 v18, v0

    invoke-interface/range {v18 .. v18}, Landroid/database/Cursor;->moveToNext()Z

    move-result v18

    if-nez v18, :cond_4

    .line 1400
    :goto_4
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesActivity2;->cursor:Landroid/database/Cursor;

    move-object/from16 v18, v0

    invoke-interface/range {v18 .. v18}, Landroid/database/Cursor;->close()V

    .line 1402
    const/4 v3, 0x1

    .line 1403
    .local v3, "checkcart":Z
    add-int/lit8 v15, v16, 0x1

    .line 1404
    .restart local v15    # "newgoodcount":I
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesActivity2;->cv:Landroid/content/ContentValues;

    move-object/from16 v18, v0

    const-string v19, "pnum"

    invoke-static {v15}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v20

    invoke-virtual/range {v18 .. v20}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Integer;)V

    .line 1405
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesActivity2;->db:Landroid/database/sqlite/SQLiteDatabase;

    move-object/from16 v18, v0

    const-string v19, "cart"

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesActivity2;->cv:Landroid/content/ContentValues;

    move-object/from16 v20, v0

    new-instance v21, Ljava/lang/StringBuilder;

    const-string v22, "pid = \'"

    invoke-direct/range {v21 .. v22}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    move-object/from16 v0, v21

    invoke-virtual {v0, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v21

    const-string v22, "\'"

    invoke-virtual/range {v21 .. v22}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v21

    invoke-virtual/range {v21 .. v21}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v21

    const/16 v22, 0x0

    invoke-virtual/range {v18 .. v22}, Landroid/database/sqlite/SQLiteDatabase;->update(Ljava/lang/String;Landroid/content/ContentValues;Ljava/lang/String;[Ljava/lang/String;)I

    .line 1407
    const-string v18, "ShopshowACtivity"

    new-instance v19, Ljava/lang/StringBuilder;

    const-string v20, "addcart+\u6dfb\u52a0\u8d2d\u7269"

    invoke-direct/range {v19 .. v20}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    move-object/from16 v0, v19

    invoke-virtual {v0, v15}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v19

    invoke-virtual/range {v19 .. v19}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v19

    invoke-static/range {v18 .. v19}, Lmyapp/Mylog;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 1408
    add-int/lit8 v18, p1, 0x1

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesActivity2;->list:Landroid/widget/ListView;

    move-object/from16 v19, v0

    move-object/from16 v0, p0

    move/from16 v1, v18

    move-object/from16 v2, v19

    invoke-virtual {v0, v1, v2}, Lcom/example/m6wmr/DishesActivity2;->getViewByPosition(ILandroid/widget/ListView;)Landroid/view/View;

    move-result-object v17

    .line 1409
    .restart local v17    # "tempview":Landroid/view/View;
    const v18, 0x7f0c0081

    invoke-virtual/range {v17 .. v18}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v11

    check-cast v11, Landroid/widget/TextView;

    .line 1410
    .restart local v11    # "goodscoust":Landroid/widget/TextView;
    invoke-static {v15}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v18

    move-object/from16 v0, v18

    invoke-virtual {v11, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 1412
    move-object/from16 v0, p0

    iget v0, v0, Lcom/example/m6wmr/DishesActivity2;->sumcart:I

    move/from16 v18, v0

    add-int/lit8 v18, v18, 0x1

    move/from16 v0, v18

    move-object/from16 v1, p0

    iput v0, v1, Lcom/example/m6wmr/DishesActivity2;->sumcart:I

    .line 1413
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesActivity2;->tv_num:Landroid/widget/TextView;

    move-object/from16 v18, v0

    move-object/from16 v0, p0

    iget v0, v0, Lcom/example/m6wmr/DishesActivity2;->sumcart:I

    move/from16 v19, v0

    invoke-static/range {v19 .. v19}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v19

    invoke-virtual/range {v18 .. v19}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 1415
    move-object/from16 v0, p0

    iget v0, v0, Lcom/example/m6wmr/DishesActivity2;->sumcartcost:F

    move/from16 v18, v0

    add-float v18, v18, v9

    move/from16 v0, v18

    move-object/from16 v1, p0

    iput v0, v1, Lcom/example/m6wmr/DishesActivity2;->sumcartcost:F

    .line 1416
    move-object/from16 v0, p0

    iget v0, v0, Lcom/example/m6wmr/DishesActivity2;->sumcartcost:F

    move/from16 v18, v0

    const/high16 v19, 0x42c80000    # 100.0f

    mul-float v18, v18, v19

    invoke-static/range {v18 .. v18}, Ljava/lang/Math;->round(F)I

    move-result v18

    move/from16 v0, v18

    int-to-float v0, v0

    move/from16 v18, v0

    const/high16 v19, 0x42c80000    # 100.0f

    div-float v18, v18, v19

    move/from16 v0, v18

    move-object/from16 v1, p0

    iput v0, v1, Lcom/example/m6wmr/DishesActivity2;->sumcartcost:F

    .line 1417
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesActivity2;->tv_total:Landroid/widget/TextView;

    move-object/from16 v18, v0

    new-instance v19, Ljava/lang/StringBuilder;

    invoke-direct/range {v19 .. v19}, Ljava/lang/StringBuilder;-><init>()V

    move-object/from16 v0, p0

    iget v0, v0, Lcom/example/m6wmr/DishesActivity2;->sumcartcost:F

    move/from16 v20, v0

    invoke-static/range {v20 .. v20}, Ljava/lang/String;->valueOf(F)Ljava/lang/String;

    move-result-object v20

    invoke-virtual/range {v19 .. v20}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v19

    invoke-virtual/range {v19 .. v19}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v19

    invoke-virtual/range {v18 .. v19}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto/16 :goto_2

    .line 1389
    .end local v3    # "checkcart":Z
    .end local v11    # "goodscoust":Landroid/widget/TextView;
    .end local v15    # "newgoodcount":I
    .end local v17    # "tempview":Landroid/view/View;
    :cond_4
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesActivity2;->cursor:Landroid/database/Cursor;

    move-object/from16 v18, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesActivity2;->cursor:Landroid/database/Cursor;

    move-object/from16 v19, v0

    .line 1390
    const-string v20, "pnum"

    invoke-interface/range {v19 .. v20}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v19

    .line 1389
    invoke-interface/range {v18 .. v19}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v18

    invoke-static/range {v18 .. v18}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

    move-result-object v18

    invoke-virtual/range {v18 .. v18}, Ljava/lang/Integer;->intValue()I

    move-result v16

    .line 1391
    const/4 v4, 0x0

    .line 1392
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesActivity2;->cursor:Landroid/database/Cursor;

    move-object/from16 v18, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesActivity2;->cursor:Landroid/database/Cursor;

    move-object/from16 v19, v0

    .line 1393
    const-string v20, "goodscost"

    invoke-interface/range {v19 .. v20}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v19

    .line 1392
    invoke-interface/range {v18 .. v19}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v18

    invoke-static/range {v18 .. v18}, Ljava/lang/Float;->valueOf(Ljava/lang/String;)Ljava/lang/Float;

    move-result-object v18

    invoke-virtual/range {v18 .. v18}, Ljava/lang/Float;->floatValue()F

    move-result v5

    .line 1394
    .restart local v5    # "dajia":F
    const/high16 v18, 0x42c80000    # 100.0f

    mul-float v18, v18, v5

    invoke-static/range {v18 .. v18}, Ljava/lang/Math;->round(F)I

    move-result v18

    move/from16 v0, v18

    int-to-float v0, v0

    move/from16 v18, v0

    const/high16 v19, 0x42c80000    # 100.0f

    div-float v9, v18, v19

    goto/16 :goto_3

    .line 1398
    .end local v5    # "dajia":F
    :cond_5
    const/4 v4, 0x1

    goto/16 :goto_4
.end method

.method public addcart()V
    .locals 17

    .prologue
    .line 577
    move-object/from16 v0, p0

    iget-object v12, v0, Lcom/example/m6wmr/DishesActivity2;->bb:Lbean/GoodsBean;

    invoke-virtual {v12}, Lbean/GoodsBean;->getcounts()Ljava/lang/String;

    move-result-object v12

    invoke-static {v12}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

    move-result-object v12

    invoke-virtual {v12}, Ljava/lang/Integer;->intValue()I

    move-result v12

    move-object/from16 v0, p0

    iget v13, v0, Lcom/example/m6wmr/DishesActivity2;->ind:I

    if-ge v12, v13, :cond_1

    .line 579
    move-object/from16 v0, p0

    iget-object v12, v0, Lcom/example/m6wmr/DishesActivity2;->iv_del:Landroid/widget/ImageView;

    const/16 v13, 0x8

    invoke-virtual {v12, v13}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 580
    move-object/from16 v0, p0

    iget-object v12, v0, Lcom/example/m6wmr/DishesActivity2;->tv_count:Landroid/widget/TextView;

    const/16 v13, 0x8

    invoke-virtual {v12, v13}, Landroid/widget/TextView;->setVisibility(I)V

    .line 581
    move-object/from16 v0, p0

    iget-object v12, v0, Lcom/example/m6wmr/DishesActivity2;->context:Landroid/content/Context;

    const-string v13, "\u63d0\u793a\u4fe1\u606f"

    const-string v14, "\u5e93\u5b58\u4e0d\u8db3"

    invoke-static {v12, v13, v14}, Lmyapp/Util;->alertdialog(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    .line 654
    :cond_0
    :goto_0
    return-void

    .line 586
    :cond_1
    new-instance v12, Landroid/widget/ImageView;

    move-object/from16 v0, p0

    iget-object v13, v0, Lcom/example/m6wmr/DishesActivity2;->context:Landroid/content/Context;

    invoke-direct {v12, v13}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V

    move-object/from16 v0, p0

    iput-object v12, v0, Lcom/example/m6wmr/DishesActivity2;->buyImg:Landroid/widget/ImageView;

    .line 587
    move-object/from16 v0, p0

    iget-object v12, v0, Lcom/example/m6wmr/DishesActivity2;->buyImg:Landroid/widget/ImageView;

    const v13, 0x7f02004f

    invoke-virtual {v12, v13}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 588
    move-object/from16 v0, p0

    iget-object v12, v0, Lcom/example/m6wmr/DishesActivity2;->m:Lmyapp/MyApp;

    invoke-virtual {v12}, Lmyapp/MyApp;->getAppcolor()Ljava/lang/String;

    move-result-object v12

    const-string v13, "1"

    invoke-virtual {v12, v13}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v12

    if-eqz v12, :cond_2

    .line 589
    move-object/from16 v0, p0

    iget-object v12, v0, Lcom/example/m6wmr/DishesActivity2;->buyImg:Landroid/widget/ImageView;

    const v13, 0x7f02004e

    invoke-virtual {v12, v13}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 591
    :cond_2
    const/4 v12, 0x2

    new-array v11, v12, [I

    .line 593
    .local v11, "startpos":[I
    move-object/from16 v0, p0

    iget-object v12, v0, Lcom/example/m6wmr/DishesActivity2;->iv_add:Landroid/widget/ImageView;

    invoke-virtual {v12, v11}, Landroid/widget/ImageView;->getLocationInWindow([I)V

    .line 594
    move-object/from16 v0, p0

    iget-object v12, v0, Lcom/example/m6wmr/DishesActivity2;->buyImg:Landroid/widget/ImageView;

    move-object/from16 v0, p0

    invoke-direct {v0, v12, v11}, Lcom/example/m6wmr/DishesActivity2;->setAnim(Landroid/view/View;[I)V

    .line 596
    move-object/from16 v0, p0

    iget-object v12, v0, Lcom/example/m6wmr/DishesActivity2;->tv_count:Landroid/widget/TextView;

    new-instance v13, Ljava/lang/StringBuilder;

    move-object/from16 v0, p0

    iget v14, v0, Lcom/example/m6wmr/DishesActivity2;->ind:I

    invoke-static {v14}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v14

    invoke-direct {v13, v14}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v13}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v13

    invoke-virtual {v12, v13}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 597
    move-object/from16 v0, p0

    iget-object v12, v0, Lcom/example/m6wmr/DishesActivity2;->helper:Ldbclass/DBOpenHelper;

    invoke-virtual {v12}, Ldbclass/DBOpenHelper;->getReadableDatabase()Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v12

    new-instance v13, Ljava/lang/StringBuilder;

    const-string v14, "select * from cart where goodsid="

    invoke-direct {v13, v14}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    move-object/from16 v0, p0

    iget-object v14, v0, Lcom/example/m6wmr/DishesActivity2;->goodsid:Ljava/lang/String;

    invoke-virtual {v13, v14}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v13

    invoke-virtual {v13}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v13

    const/4 v14, 0x0

    invoke-virtual {v12, v13, v14}, Landroid/database/sqlite/SQLiteDatabase;->rawQuery(Ljava/lang/String;[Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v12

    move-object/from16 v0, p0

    iput-object v12, v0, Lcom/example/m6wmr/DishesActivity2;->cursor:Landroid/database/Cursor;

    .line 598
    const/4 v9, 0x0

    .line 599
    .local v9, "goodscount":I
    const/4 v8, 0x0

    .line 600
    .local v8, "goodscostone":F
    const/4 v3, 0x1

    .line 601
    .local v3, "checkgd":Z
    move-object/from16 v0, p0

    iget-object v12, v0, Lcom/example/m6wmr/DishesActivity2;->cursor:Landroid/database/Cursor;

    if-eqz v12, :cond_5

    .line 602
    :goto_1
    move-object/from16 v0, p0

    iget-object v12, v0, Lcom/example/m6wmr/DishesActivity2;->cursor:Landroid/database/Cursor;

    invoke-interface {v12}, Landroid/database/Cursor;->moveToNext()Z

    move-result v12

    if-nez v12, :cond_4

    .line 614
    :goto_2
    move-object/from16 v0, p0

    iget-object v12, v0, Lcom/example/m6wmr/DishesActivity2;->cursor:Landroid/database/Cursor;

    invoke-interface {v12}, Landroid/database/Cursor;->close()V

    .line 615
    const/4 v2, 0x1

    .line 617
    .local v2, "checkcart":Z
    if-eqz v3, :cond_6

    .line 619
    move-object/from16 v0, p0

    iget-object v12, v0, Lcom/example/m6wmr/DishesActivity2;->db:Landroid/database/sqlite/SQLiteDatabase;

    .line 621
    const-string v13, "insert into cart (shopid,goodsid,goodsname,goodscount,goodscost,pnum,type) values(?,?,?,?,?,?,?)"

    .line 622
    const/4 v14, 0x7

    new-array v14, v14, [Ljava/lang/Object;

    const/4 v15, 0x0

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesActivity2;->shopid:Ljava/lang/String;

    move-object/from16 v16, v0

    aput-object v16, v14, v15

    const/4 v15, 0x1

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesActivity2;->goodsid:Ljava/lang/String;

    move-object/from16 v16, v0

    aput-object v16, v14, v15

    const/4 v15, 0x2

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesActivity2;->bb:Lbean/GoodsBean;

    move-object/from16 v16, v0

    invoke-virtual/range {v16 .. v16}, Lbean/GoodsBean;->getname()Ljava/lang/String;

    move-result-object v16

    aput-object v16, v14, v15

    const/4 v15, 0x3

    move-object/from16 v0, p0

    iget v0, v0, Lcom/example/m6wmr/DishesActivity2;->ind:I

    move/from16 v16, v0

    invoke-static/range {v16 .. v16}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v16

    aput-object v16, v14, v15

    const/4 v15, 0x4

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesActivity2;->bb:Lbean/GoodsBean;

    move-object/from16 v16, v0

    invoke-virtual/range {v16 .. v16}, Lbean/GoodsBean;->getcost()F

    move-result v16

    invoke-static/range {v16 .. v16}, Ljava/lang/String;->valueOf(F)Ljava/lang/String;

    move-result-object v16

    aput-object v16, v14, v15

    const/4 v15, 0x5

    const-string v16, "0"

    aput-object v16, v14, v15

    const/4 v15, 0x6

    const-string v16, "0"

    aput-object v16, v14, v15

    .line 619
    invoke-virtual {v12, v13, v14}, Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;[Ljava/lang/Object;)V

    .line 630
    :goto_3
    move-object/from16 v0, p0

    iget-object v12, v0, Lcom/example/m6wmr/DishesActivity2;->m:Lmyapp/MyApp;

    invoke-virtual {v12}, Lmyapp/MyApp;->getActivity()Ljava/util/ArrayList;

    move-result-object v1

    .line 631
    .local v1, "activityList":Ljava/util/ArrayList;, "Ljava/util/ArrayList<Landroid/app/Activity;>;"
    const/4 v7, 0x0

    .line 632
    .local v7, "find":Z
    invoke-virtual {v1}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v12

    :cond_3
    :goto_4
    invoke-interface {v12}, Ljava/util/Iterator;->hasNext()Z

    move-result v13

    if-nez v13, :cond_7

    .line 640
    if-eqz v7, :cond_0

    .line 642
    new-instance v10, Landroid/os/Message;

    invoke-direct {v10}, Landroid/os/Message;-><init>()V

    .line 644
    .local v10, "msg":Landroid/os/Message;
    const/16 v12, 0x63

    iput v12, v10, Landroid/os/Message;->arg1:I

    .line 645
    move-object/from16 v0, p0

    iget-object v12, v0, Lcom/example/m6wmr/DishesActivity2;->goodsid:Ljava/lang/String;

    invoke-static {v12}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

    move-result-object v12

    invoke-virtual {v12}, Ljava/lang/Integer;->intValue()I

    move-result v12

    iput v12, v10, Landroid/os/Message;->arg2:I

    .line 646
    const-string v12, "add"

    iput-object v12, v10, Landroid/os/Message;->obj:Ljava/lang/Object;

    .line 647
    sget-object v12, Lcom/example/m6wmr/ShopDishesActivity;->h:Landroid/os/Handler;

    invoke-virtual {v12, v10}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    goto/16 :goto_0

    .line 603
    .end local v1    # "activityList":Ljava/util/ArrayList;, "Ljava/util/ArrayList<Landroid/app/Activity;>;"
    .end local v2    # "checkcart":Z
    .end local v7    # "find":Z
    .end local v10    # "msg":Landroid/os/Message;
    :cond_4
    move-object/from16 v0, p0

    iget-object v12, v0, Lcom/example/m6wmr/DishesActivity2;->cursor:Landroid/database/Cursor;

    move-object/from16 v0, p0

    iget-object v13, v0, Lcom/example/m6wmr/DishesActivity2;->cursor:Landroid/database/Cursor;

    .line 604
    const-string v14, "goodscount"

    invoke-interface {v13, v14}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v13

    .line 603
    invoke-interface {v12, v13}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v12

    invoke-static {v12}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

    move-result-object v12

    invoke-virtual {v12}, Ljava/lang/Integer;->intValue()I

    move-result v9

    .line 605
    const/4 v3, 0x0

    .line 606
    move-object/from16 v0, p0

    iget-object v12, v0, Lcom/example/m6wmr/DishesActivity2;->cursor:Landroid/database/Cursor;

    move-object/from16 v0, p0

    iget-object v13, v0, Lcom/example/m6wmr/DishesActivity2;->cursor:Landroid/database/Cursor;

    .line 607
    const-string v14, "goodscost"

    invoke-interface {v13, v14}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v13

    .line 606
    invoke-interface {v12, v13}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v12

    invoke-static {v12}, Ljava/lang/Float;->valueOf(Ljava/lang/String;)Ljava/lang/Float;

    move-result-object v12

    invoke-virtual {v12}, Ljava/lang/Float;->floatValue()F

    move-result v5

    .line 608
    .local v5, "dajia":F
    const/high16 v12, 0x42c80000    # 100.0f

    mul-float/2addr v12, v5

    invoke-static {v12}, Ljava/lang/Math;->round(F)I

    move-result v12

    int-to-float v12, v12

    const/high16 v13, 0x42c80000    # 100.0f

    div-float v8, v12, v13

    goto/16 :goto_1

    .line 612
    .end local v5    # "dajia":F
    :cond_5
    const/4 v3, 0x1

    goto/16 :goto_2

    .line 626
    .restart local v2    # "checkcart":Z
    :cond_6
    move-object/from16 v0, p0

    iget-object v12, v0, Lcom/example/m6wmr/DishesActivity2;->cv:Landroid/content/ContentValues;

    const-string v13, "goodscount"

    move-object/from16 v0, p0

    iget v14, v0, Lcom/example/m6wmr/DishesActivity2;->ind:I

    invoke-static {v14}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v14

    invoke-virtual {v12, v13, v14}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Integer;)V

    .line 627
    move-object/from16 v0, p0

    iget-object v12, v0, Lcom/example/m6wmr/DishesActivity2;->db:Landroid/database/sqlite/SQLiteDatabase;

    const-string v13, "cart"

    move-object/from16 v0, p0

    iget-object v14, v0, Lcom/example/m6wmr/DishesActivity2;->cv:Landroid/content/ContentValues;

    new-instance v15, Ljava/lang/StringBuilder;

    const-string v16, "goodsid = \'"

    invoke-direct/range {v15 .. v16}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesActivity2;->goodsid:Ljava/lang/String;

    move-object/from16 v16, v0

    invoke-virtual/range {v15 .. v16}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v15

    const-string v16, "\'"

    invoke-virtual/range {v15 .. v16}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v15

    invoke-virtual {v15}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v15

    const/16 v16, 0x0

    invoke-virtual/range {v12 .. v16}, Landroid/database/sqlite/SQLiteDatabase;->update(Ljava/lang/String;Landroid/content/ContentValues;Ljava/lang/String;[Ljava/lang/String;)I

    goto/16 :goto_3

    .line 632
    .restart local v1    # "activityList":Ljava/util/ArrayList;, "Ljava/util/ArrayList<Landroid/app/Activity;>;"
    .restart local v7    # "find":Z
    :cond_7
    invoke-interface {v12}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v6

    check-cast v6, Landroid/app/Activity;

    .line 633
    .local v6, "e":Landroid/app/Activity;
    invoke-virtual {v6}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v13

    invoke-virtual {v6}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v14

    const-string v15, "."

    invoke-virtual {v14, v15}, Ljava/lang/String;->lastIndexOf(Ljava/lang/String;)I

    move-result v14

    add-int/lit8 v14, v14, 0x1

    invoke-virtual {v6}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v15

    const-string v16, "@"

    invoke-virtual/range {v15 .. v16}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v15

    invoke-virtual {v13, v14, v15}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v4

    .line 634
    .local v4, "checkname":Ljava/lang/String;
    const-string v13, ""

    const-string v14, "checkname"

    invoke-static {v13, v14}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 635
    const-string v13, "ShopDishesActivity"

    invoke-virtual {v4, v13}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v13

    if-eqz v13, :cond_3

    .line 636
    const/4 v7, 0x1

    goto/16 :goto_4
.end method

.method public del(I)V
    .locals 19
    .param p1, "position"    # I

    .prologue
    .line 1424
    const/4 v14, 0x1

    move-object/from16 v0, p0

    iput v14, v0, Lcom/example/m6wmr/DishesActivity2;->fff:I

    .line 1426
    invoke-direct/range {p0 .. p0}, Lcom/example/m6wmr/DishesActivity2;->getAllGoodsBeanList()Ljava/util/List;

    move-result-object v14

    move/from16 v0, p1

    invoke-interface {v14, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v10

    check-cast v10, Lbean/GoodsBean;

    .line 1428
    .local v10, "mygoods":Lbean/GoodsBean;
    invoke-virtual {v10}, Lbean/GoodsBean;->getId()Ljava/lang/String;

    move-result-object v5

    .line 1429
    .local v5, "gid":Ljava/lang/String;
    invoke-virtual {v10}, Lbean/GoodsBean;->getGgid()Ljava/lang/String;

    move-result-object v14

    if-nez v14, :cond_8

    .line 1430
    new-instance v9, Landroid/os/Message;

    invoke-direct {v9}, Landroid/os/Message;-><init>()V

    .line 1431
    .local v9, "msg":Landroid/os/Message;
    iput-object v5, v9, Landroid/os/Message;->obj:Ljava/lang/Object;

    .line 1432
    const/16 v14, 0x24

    iput v14, v9, Landroid/os/Message;->arg1:I

    .line 1433
    sget-object v14, Lframent/FramentOrder;->h:Landroid/os/Handler;

    invoke-virtual {v14, v9}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    .line 1435
    move-object/from16 v0, p0

    iget-object v14, v0, Lcom/example/m6wmr/DishesActivity2;->helper:Ldbclass/DBOpenHelper;

    invoke-virtual {v14}, Ldbclass/DBOpenHelper;->getReadableDatabase()Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v14

    .line 1436
    new-instance v15, Ljava/lang/StringBuilder;

    const-string v16, "select * from cart where goodsid="

    invoke-direct/range {v15 .. v16}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v15, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v15

    invoke-virtual {v15}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v15

    const/16 v16, 0x0

    .line 1435
    invoke-virtual/range {v14 .. v16}, Landroid/database/sqlite/SQLiteDatabase;->rawQuery(Ljava/lang/String;[Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v14

    move-object/from16 v0, p0

    iput-object v14, v0, Lcom/example/m6wmr/DishesActivity2;->cursor:Landroid/database/Cursor;

    .line 1437
    const/4 v7, 0x0

    .line 1438
    .local v7, "goodscount":I
    const/4 v1, 0x1

    .line 1439
    .local v1, "checkgd":Z
    const/4 v6, 0x0

    .line 1440
    .local v6, "goodscostone":F
    move-object/from16 v0, p0

    iget-object v14, v0, Lcom/example/m6wmr/DishesActivity2;->cursor:Landroid/database/Cursor;

    if-eqz v14, :cond_1

    .line 1441
    :goto_0
    move-object/from16 v0, p0

    iget-object v14, v0, Lcom/example/m6wmr/DishesActivity2;->cursor:Landroid/database/Cursor;

    invoke-interface {v14}, Landroid/database/Cursor;->moveToNext()Z

    move-result v14

    if-nez v14, :cond_0

    .line 1452
    :goto_1
    move-object/from16 v0, p0

    iget-object v14, v0, Lcom/example/m6wmr/DishesActivity2;->cursor:Landroid/database/Cursor;

    invoke-interface {v14}, Landroid/database/Cursor;->close()V

    .line 1453
    if-eqz v1, :cond_2

    .line 1454
    move-object/from16 v0, p0

    iget-object v14, v0, Lcom/example/m6wmr/DishesActivity2;->context:Landroid/content/Context;

    const-string v15, "\u63d0\u793a\u4fe1\u606f"

    const-string v16, ""

    invoke-static/range {v14 .. v16}, Lmyapp/Util;->alertdialog(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    .line 1552
    .end local v7    # "goodscount":I
    .end local v9    # "msg":Landroid/os/Message;
    :goto_2
    return-void

    .line 1442
    .restart local v7    # "goodscount":I
    .restart local v9    # "msg":Landroid/os/Message;
    :cond_0
    move-object/from16 v0, p0

    iget-object v14, v0, Lcom/example/m6wmr/DishesActivity2;->cursor:Landroid/database/Cursor;

    move-object/from16 v0, p0

    iget-object v15, v0, Lcom/example/m6wmr/DishesActivity2;->cursor:Landroid/database/Cursor;

    .line 1443
    const-string v16, "goodscount"

    invoke-interface/range {v15 .. v16}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v15

    .line 1442
    invoke-interface {v14, v15}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v14

    invoke-static {v14}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

    move-result-object v14

    invoke-virtual {v14}, Ljava/lang/Integer;->intValue()I

    move-result v7

    .line 1444
    const/4 v1, 0x0

    .line 1445
    move-object/from16 v0, p0

    iget-object v14, v0, Lcom/example/m6wmr/DishesActivity2;->cursor:Landroid/database/Cursor;

    move-object/from16 v0, p0

    iget-object v15, v0, Lcom/example/m6wmr/DishesActivity2;->cursor:Landroid/database/Cursor;

    .line 1446
    const-string v16, "goodscost"

    invoke-interface/range {v15 .. v16}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v15

    .line 1445
    invoke-interface {v14, v15}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v14

    invoke-static {v14}, Ljava/lang/Float;->valueOf(Ljava/lang/String;)Ljava/lang/Float;

    move-result-object v14

    invoke-virtual {v14}, Ljava/lang/Float;->floatValue()F

    move-result v2

    .line 1447
    .local v2, "dajia":F
    const/high16 v14, 0x42c80000    # 100.0f

    mul-float/2addr v14, v2

    invoke-static {v14}, Ljava/lang/Math;->round(F)I

    move-result v14

    int-to-float v14, v14

    const/high16 v15, 0x42c80000    # 100.0f

    div-float v6, v14, v15

    goto :goto_0

    .line 1450
    .end local v2    # "dajia":F
    :cond_1
    const/4 v1, 0x1

    goto :goto_1

    .line 1457
    :cond_2
    add-int/lit8 v11, v7, -0x1

    .line 1458
    .local v11, "newgoodcount":I
    const/4 v14, 0x1

    if-ge v11, v14, :cond_7

    .line 1460
    move-object/from16 v0, p0

    iget-object v14, v0, Lcom/example/m6wmr/DishesActivity2;->db:Landroid/database/sqlite/SQLiteDatabase;

    const-string v15, "cart"

    new-instance v16, Ljava/lang/StringBuilder;

    const-string v17, "goodsid = \'"

    invoke-direct/range {v16 .. v17}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    move-object/from16 v0, v16

    invoke-virtual {v0, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v16

    const-string v17, "\'"

    invoke-virtual/range {v16 .. v17}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v16

    invoke-virtual/range {v16 .. v16}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v16

    const/16 v17, 0x0

    invoke-virtual/range {v14 .. v17}, Landroid/database/sqlite/SQLiteDatabase;->delete(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;)I

    .line 1461
    invoke-direct/range {p0 .. p0}, Lcom/example/m6wmr/DishesActivity2;->getAllGoodsBeanList()Ljava/util/List;

    move-result-object v14

    invoke-interface {v14}, Ljava/util/List;->size()I

    move-result v14

    if-lez v14, :cond_6

    .line 1462
    new-instance v14, Ldata/PupCarAdapter3;

    move-object/from16 v0, p0

    iget-object v15, v0, Lcom/example/m6wmr/DishesActivity2;->context:Landroid/content/Context;

    invoke-direct/range {p0 .. p0}, Lcom/example/m6wmr/DishesActivity2;->getAllGoodsBeanList()Ljava/util/List;

    move-result-object v16

    invoke-direct/range {v14 .. v16}, Ldata/PupCarAdapter3;-><init>(Landroid/content/Context;Ljava/util/List;)V

    move-object/from16 v0, p0

    iput-object v14, v0, Lcom/example/m6wmr/DishesActivity2;->ca:Ldata/PupCarAdapter3;

    .line 1463
    move-object/from16 v0, p0

    iget-object v14, v0, Lcom/example/m6wmr/DishesActivity2;->list:Landroid/widget/ListView;

    move-object/from16 v0, p0

    iget-object v15, v0, Lcom/example/m6wmr/DishesActivity2;->ca:Ldata/PupCarAdapter3;

    invoke-virtual {v14, v15}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V

    .line 1464
    move-object/from16 v0, p0

    iget-object v14, v0, Lcom/example/m6wmr/DishesActivity2;->ca:Ldata/PupCarAdapter3;

    invoke-virtual {v14}, Ldata/PupCarAdapter3;->notifyDataSetChanged()V

    .line 1475
    :goto_3
    if-lez v11, :cond_3

    .line 1476
    add-int/lit8 v14, p1, 0x1

    move-object/from16 v0, p0

    iget-object v15, v0, Lcom/example/m6wmr/DishesActivity2;->list:Landroid/widget/ListView;

    move-object/from16 v0, p0

    invoke-virtual {v0, v14, v15}, Lcom/example/m6wmr/DishesActivity2;->getViewByPosition(ILandroid/widget/ListView;)Landroid/view/View;

    move-result-object v13

    .line 1477
    .local v13, "tempview":Landroid/view/View;
    const v14, 0x7f0c0081

    invoke-virtual {v13, v14}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v8

    check-cast v8, Landroid/widget/TextView;

    .line 1478
    .local v8, "goodscoust":Landroid/widget/TextView;
    invoke-static {v11}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v14

    invoke-virtual {v8, v14}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 1482
    .end local v8    # "goodscoust":Landroid/widget/TextView;
    .end local v13    # "tempview":Landroid/view/View;
    :cond_3
    move-object/from16 v0, p0

    iget v14, v0, Lcom/example/m6wmr/DishesActivity2;->sumcartcost:F

    sub-float/2addr v14, v6

    move-object/from16 v0, p0

    iput v14, v0, Lcom/example/m6wmr/DishesActivity2;->sumcartcost:F

    .line 1483
    move-object/from16 v0, p0

    iget v14, v0, Lcom/example/m6wmr/DishesActivity2;->sumcart:I

    add-int/lit8 v14, v14, -0x1

    move-object/from16 v0, p0

    iput v14, v0, Lcom/example/m6wmr/DishesActivity2;->sumcart:I

    .line 1484
    move-object/from16 v0, p0

    iget-object v14, v0, Lcom/example/m6wmr/DishesActivity2;->tv_num:Landroid/widget/TextView;

    move-object/from16 v0, p0

    iget v15, v0, Lcom/example/m6wmr/DishesActivity2;->sumcart:I

    invoke-static {v15}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v15

    invoke-virtual {v14, v15}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 1485
    move-object/from16 v0, p0

    iget-object v14, v0, Lcom/example/m6wmr/DishesActivity2;->goodsid:Ljava/lang/String;

    invoke-virtual {v5, v14}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v14

    if-eqz v14, :cond_4

    .line 1486
    move-object/from16 v0, p0

    iget-object v14, v0, Lcom/example/m6wmr/DishesActivity2;->tv_count:Landroid/widget/TextView;

    invoke-static {v11}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v15

    invoke-virtual {v14, v15}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 1488
    :cond_4
    move-object/from16 v0, p0

    iget v14, v0, Lcom/example/m6wmr/DishesActivity2;->sumcart:I

    if-nez v14, :cond_5

    .line 1489
    move-object/from16 v0, p0

    iget-object v14, v0, Lcom/example/m6wmr/DishesActivity2;->search:Landroid/widget/RelativeLayout;

    const v15, 0x7f02008c

    invoke-virtual {v14, v15}, Landroid/widget/RelativeLayout;->setBackgroundResource(I)V

    .line 1491
    :cond_5
    move-object/from16 v0, p0

    iget v14, v0, Lcom/example/m6wmr/DishesActivity2;->sumcartcost:F

    const/high16 v15, 0x42c80000    # 100.0f

    mul-float/2addr v14, v15

    invoke-static {v14}, Ljava/lang/Math;->round(F)I

    move-result v14

    int-to-float v14, v14

    const/high16 v15, 0x42c80000    # 100.0f

    div-float/2addr v14, v15

    move-object/from16 v0, p0

    iput v14, v0, Lcom/example/m6wmr/DishesActivity2;->sumcartcost:F

    .line 1492
    move-object/from16 v0, p0

    iget-object v14, v0, Lcom/example/m6wmr/DishesActivity2;->tv_total:Landroid/widget/TextView;

    new-instance v15, Ljava/lang/StringBuilder;

    invoke-direct {v15}, Ljava/lang/StringBuilder;-><init>()V

    move-object/from16 v0, p0

    iget v0, v0, Lcom/example/m6wmr/DishesActivity2;->sumcartcost:F

    move/from16 v16, v0

    invoke-static/range {v16 .. v16}, Ljava/lang/String;->valueOf(F)Ljava/lang/String;

    move-result-object v16

    invoke-virtual/range {v15 .. v16}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v15

    invoke-virtual {v15}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v15

    invoke-virtual {v14, v15}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto/16 :goto_2

    .line 1466
    :cond_6
    move-object/from16 v0, p0

    iget-object v14, v0, Lcom/example/m6wmr/DishesActivity2;->list:Landroid/widget/ListView;

    const/16 v15, 0x8

    invoke-virtual {v14, v15}, Landroid/widget/ListView;->setVisibility(I)V

    goto/16 :goto_3

    .line 1471
    :cond_7
    move-object/from16 v0, p0

    iget-object v14, v0, Lcom/example/m6wmr/DishesActivity2;->cv:Landroid/content/ContentValues;

    const-string v15, "goodscount"

    invoke-static {v11}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v16

    invoke-virtual/range {v14 .. v16}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Integer;)V

    .line 1472
    move-object/from16 v0, p0

    iget-object v14, v0, Lcom/example/m6wmr/DishesActivity2;->db:Landroid/database/sqlite/SQLiteDatabase;

    const-string v15, "cart"

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesActivity2;->cv:Landroid/content/ContentValues;

    move-object/from16 v16, v0

    new-instance v17, Ljava/lang/StringBuilder;

    const-string v18, "goodsid = \'"

    invoke-direct/range {v17 .. v18}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    move-object/from16 v0, v17

    invoke-virtual {v0, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v17

    const-string v18, "\'"

    invoke-virtual/range {v17 .. v18}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v17

    invoke-virtual/range {v17 .. v17}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v17

    const/16 v18, 0x0

    invoke-virtual/range {v14 .. v18}, Landroid/database/sqlite/SQLiteDatabase;->update(Ljava/lang/String;Landroid/content/ContentValues;Ljava/lang/String;[Ljava/lang/String;)I

    goto/16 :goto_3

    .line 1495
    .end local v1    # "checkgd":Z
    .end local v6    # "goodscostone":F
    .end local v7    # "goodscount":I
    .end local v9    # "msg":Landroid/os/Message;
    .end local v11    # "newgoodcount":I
    :cond_8
    invoke-virtual {v10}, Lbean/GoodsBean;->getGgid()Ljava/lang/String;

    move-result-object v4

    .line 1496
    .local v4, "ggid":Ljava/lang/String;
    move-object/from16 v0, p0

    iget-object v14, v0, Lcom/example/m6wmr/DishesActivity2;->helper:Ldbclass/DBOpenHelper;

    invoke-virtual {v14}, Ldbclass/DBOpenHelper;->getReadableDatabase()Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v14

    .line 1497
    new-instance v15, Ljava/lang/StringBuilder;

    const-string v16, "select * from cart where pid="

    invoke-direct/range {v15 .. v16}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v15, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v15

    invoke-virtual {v15}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v15

    const/16 v16, 0x0

    .line 1496
    invoke-virtual/range {v14 .. v16}, Landroid/database/sqlite/SQLiteDatabase;->rawQuery(Ljava/lang/String;[Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v14

    move-object/from16 v0, p0

    iput-object v14, v0, Lcom/example/m6wmr/DishesActivity2;->cursor:Landroid/database/Cursor;

    .line 1498
    const/4 v12, 0x0

    .line 1499
    .local v12, "pnum":I
    const/4 v1, 0x1

    .line 1500
    .restart local v1    # "checkgd":Z
    const/4 v6, 0x0

    .line 1501
    .restart local v6    # "goodscostone":F
    move-object/from16 v0, p0

    iget-object v14, v0, Lcom/example/m6wmr/DishesActivity2;->cursor:Landroid/database/Cursor;

    if-eqz v14, :cond_b

    .line 1502
    :goto_4
    move-object/from16 v0, p0

    iget-object v14, v0, Lcom/example/m6wmr/DishesActivity2;->cursor:Landroid/database/Cursor;

    invoke-interface {v14}, Landroid/database/Cursor;->moveToNext()Z

    move-result v14

    if-nez v14, :cond_a

    .line 1513
    :goto_5
    move-object/from16 v0, p0

    iget-object v14, v0, Lcom/example/m6wmr/DishesActivity2;->cursor:Landroid/database/Cursor;

    invoke-interface {v14}, Landroid/database/Cursor;->close()V

    .line 1515
    add-int/lit8 v11, v12, -0x1

    .line 1516
    .restart local v11    # "newgoodcount":I
    add-int/lit8 v14, p1, 0x1

    move-object/from16 v0, p0

    iget-object v15, v0, Lcom/example/m6wmr/DishesActivity2;->list:Landroid/widget/ListView;

    move-object/from16 v0, p0

    invoke-virtual {v0, v14, v15}, Lcom/example/m6wmr/DishesActivity2;->getViewByPosition(ILandroid/widget/ListView;)Landroid/view/View;

    move-result-object v13

    .line 1517
    .restart local v13    # "tempview":Landroid/view/View;
    const v14, 0x7f0c0081

    invoke-virtual {v13, v14}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v8

    check-cast v8, Landroid/widget/TextView;

    .line 1518
    .restart local v8    # "goodscoust":Landroid/widget/TextView;
    invoke-static {v11}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v14

    invoke-virtual {v8, v14}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 1519
    const/4 v14, 0x1

    if-ge v11, v14, :cond_9

    .line 1520
    const v14, 0x7f0c0080

    invoke-virtual {v13, v14}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/ImageView;

    .line 1522
    .local v3, "delbtn":Landroid/widget/ImageView;
    const/16 v14, 0x8

    invoke-virtual {v3, v14}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 1523
    const/16 v14, 0x8

    invoke-virtual {v8, v14}, Landroid/widget/TextView;->setVisibility(I)V

    .line 1526
    .end local v3    # "delbtn":Landroid/widget/ImageView;
    :cond_9
    const/4 v14, 0x1

    if-ge v11, v14, :cond_d

    .line 1528
    move-object/from16 v0, p0

    iget-object v14, v0, Lcom/example/m6wmr/DishesActivity2;->db:Landroid/database/sqlite/SQLiteDatabase;

    const-string v15, "cart"

    new-instance v16, Ljava/lang/StringBuilder;

    const-string v17, "pid = \'"

    invoke-direct/range {v16 .. v17}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    move-object/from16 v0, v16

    invoke-virtual {v0, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v16

    const-string v17, "\'"

    invoke-virtual/range {v16 .. v17}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v16

    invoke-virtual/range {v16 .. v16}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v16

    const/16 v17, 0x0

    invoke-virtual/range {v14 .. v17}, Landroid/database/sqlite/SQLiteDatabase;->delete(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;)I

    .line 1529
    invoke-direct/range {p0 .. p0}, Lcom/example/m6wmr/DishesActivity2;->getAllGoodsBeanList()Ljava/util/List;

    move-result-object v14

    invoke-interface {v14}, Ljava/util/List;->size()I

    move-result v14

    if-lez v14, :cond_c

    .line 1530
    new-instance v14, Ldata/PupCarAdapter3;

    move-object/from16 v0, p0

    iget-object v15, v0, Lcom/example/m6wmr/DishesActivity2;->context:Landroid/content/Context;

    invoke-direct/range {p0 .. p0}, Lcom/example/m6wmr/DishesActivity2;->getAllGoodsBeanList()Ljava/util/List;

    move-result-object v16

    invoke-direct/range {v14 .. v16}, Ldata/PupCarAdapter3;-><init>(Landroid/content/Context;Ljava/util/List;)V

    move-object/from16 v0, p0

    iput-object v14, v0, Lcom/example/m6wmr/DishesActivity2;->ca:Ldata/PupCarAdapter3;

    .line 1531
    move-object/from16 v0, p0

    iget-object v14, v0, Lcom/example/m6wmr/DishesActivity2;->list:Landroid/widget/ListView;

    move-object/from16 v0, p0

    iget-object v15, v0, Lcom/example/m6wmr/DishesActivity2;->ca:Ldata/PupCarAdapter3;

    invoke-virtual {v14, v15}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V

    .line 1532
    move-object/from16 v0, p0

    iget-object v14, v0, Lcom/example/m6wmr/DishesActivity2;->ca:Ldata/PupCarAdapter3;

    invoke-virtual {v14}, Ldata/PupCarAdapter3;->notifyDataSetChanged()V

    .line 1544
    :goto_6
    move-object/from16 v0, p0

    iget v14, v0, Lcom/example/m6wmr/DishesActivity2;->sumcartcost:F

    sub-float/2addr v14, v6

    move-object/from16 v0, p0

    iput v14, v0, Lcom/example/m6wmr/DishesActivity2;->sumcartcost:F

    .line 1546
    move-object/from16 v0, p0

    iget v14, v0, Lcom/example/m6wmr/DishesActivity2;->sumcart:I

    add-int/lit8 v14, v14, -0x1

    move-object/from16 v0, p0

    iput v14, v0, Lcom/example/m6wmr/DishesActivity2;->sumcart:I

    .line 1547
    move-object/from16 v0, p0

    iget-object v14, v0, Lcom/example/m6wmr/DishesActivity2;->tv_num:Landroid/widget/TextView;

    move-object/from16 v0, p0

    iget v15, v0, Lcom/example/m6wmr/DishesActivity2;->sumcart:I

    invoke-static {v15}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v15

    invoke-virtual {v14, v15}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 1549
    move-object/from16 v0, p0

    iget v14, v0, Lcom/example/m6wmr/DishesActivity2;->sumcartcost:F

    const/high16 v15, 0x42c80000    # 100.0f

    mul-float/2addr v14, v15

    invoke-static {v14}, Ljava/lang/Math;->round(F)I

    move-result v14

    int-to-float v14, v14

    const/high16 v15, 0x42c80000    # 100.0f

    div-float/2addr v14, v15

    move-object/from16 v0, p0

    iput v14, v0, Lcom/example/m6wmr/DishesActivity2;->sumcartcost:F

    .line 1550
    move-object/from16 v0, p0

    iget-object v14, v0, Lcom/example/m6wmr/DishesActivity2;->tv_total:Landroid/widget/TextView;

    new-instance v15, Ljava/lang/StringBuilder;

    invoke-direct {v15}, Ljava/lang/StringBuilder;-><init>()V

    move-object/from16 v0, p0

    iget v0, v0, Lcom/example/m6wmr/DishesActivity2;->sumcartcost:F

    move/from16 v16, v0

    invoke-static/range {v16 .. v16}, Ljava/lang/String;->valueOf(F)Ljava/lang/String;

    move-result-object v16

    invoke-virtual/range {v15 .. v16}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v15

    invoke-virtual {v15}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v15

    invoke-virtual {v14, v15}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto/16 :goto_2

    .line 1503
    .end local v8    # "goodscoust":Landroid/widget/TextView;
    .end local v11    # "newgoodcount":I
    .end local v13    # "tempview":Landroid/view/View;
    :cond_a
    move-object/from16 v0, p0

    iget-object v14, v0, Lcom/example/m6wmr/DishesActivity2;->cursor:Landroid/database/Cursor;

    move-object/from16 v0, p0

    iget-object v15, v0, Lcom/example/m6wmr/DishesActivity2;->cursor:Landroid/database/Cursor;

    .line 1504
    const-string v16, "pnum"

    invoke-interface/range {v15 .. v16}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v15

    .line 1503
    invoke-interface {v14, v15}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v14

    invoke-static {v14}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

    move-result-object v14

    invoke-virtual {v14}, Ljava/lang/Integer;->intValue()I

    move-result v12

    .line 1505
    const/4 v1, 0x0

    .line 1506
    move-object/from16 v0, p0

    iget-object v14, v0, Lcom/example/m6wmr/DishesActivity2;->cursor:Landroid/database/Cursor;

    move-object/from16 v0, p0

    iget-object v15, v0, Lcom/example/m6wmr/DishesActivity2;->cursor:Landroid/database/Cursor;

    .line 1507
    const-string v16, "goodscost"

    invoke-interface/range {v15 .. v16}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v15

    .line 1506
    invoke-interface {v14, v15}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v14

    invoke-static {v14}, Ljava/lang/Float;->valueOf(Ljava/lang/String;)Ljava/lang/Float;

    move-result-object v14

    invoke-virtual {v14}, Ljava/lang/Float;->floatValue()F

    move-result v2

    .line 1508
    .restart local v2    # "dajia":F
    const/high16 v14, 0x42c80000    # 100.0f

    mul-float/2addr v14, v2

    invoke-static {v14}, Ljava/lang/Math;->round(F)I

    move-result v14

    int-to-float v14, v14

    const/high16 v15, 0x42c80000    # 100.0f

    div-float v6, v14, v15

    goto/16 :goto_4

    .line 1511
    .end local v2    # "dajia":F
    :cond_b
    const/4 v1, 0x1

    goto/16 :goto_5

    .line 1534
    .restart local v8    # "goodscoust":Landroid/widget/TextView;
    .restart local v11    # "newgoodcount":I
    .restart local v13    # "tempview":Landroid/view/View;
    :cond_c
    move-object/from16 v0, p0

    iget-object v14, v0, Lcom/example/m6wmr/DishesActivity2;->list:Landroid/widget/ListView;

    const/16 v15, 0x8

    invoke-virtual {v14, v15}, Landroid/widget/ListView;->setVisibility(I)V

    goto/16 :goto_6

    .line 1538
    :cond_d
    move-object/from16 v0, p0

    iget-object v14, v0, Lcom/example/m6wmr/DishesActivity2;->cv:Landroid/content/ContentValues;

    const-string v15, "pnum"

    invoke-static {v11}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v16

    invoke-virtual/range {v14 .. v16}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Integer;)V

    .line 1539
    move-object/from16 v0, p0

    iget-object v14, v0, Lcom/example/m6wmr/DishesActivity2;->db:Landroid/database/sqlite/SQLiteDatabase;

    const-string v15, "cart"

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesActivity2;->cv:Landroid/content/ContentValues;

    move-object/from16 v16, v0

    new-instance v17, Ljava/lang/StringBuilder;

    const-string v18, "pid = \'"

    invoke-direct/range {v17 .. v18}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    move-object/from16 v0, v17

    invoke-virtual {v0, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v17

    const-string v18, "\'"

    invoke-virtual/range {v17 .. v18}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v17

    invoke-virtual/range {v17 .. v17}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v17

    const/16 v18, 0x0

    invoke-virtual/range {v14 .. v18}, Landroid/database/sqlite/SQLiteDatabase;->update(Ljava/lang/String;Landroid/content/ContentValues;Ljava/lang/String;[Ljava/lang/String;)I

    goto/16 :goto_6
.end method

.method public delcart()V
    .locals 15

    .prologue
    const/high16 v12, 0x42c80000    # 100.0f

    const/4 v14, 0x0

    .line 512
    iget-object v9, p0, Lcom/example/m6wmr/DishesActivity2;->helper:Ldbclass/DBOpenHelper;

    invoke-virtual {v9}, Ldbclass/DBOpenHelper;->getReadableDatabase()Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v9

    .line 513
    new-instance v10, Ljava/lang/StringBuilder;

    const-string v11, "select * from cart where goodsid="

    invoke-direct {v10, v11}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget-object v11, p0, Lcom/example/m6wmr/DishesActivity2;->goodsid:Ljava/lang/String;

    invoke-virtual {v10, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v10

    invoke-virtual {v10}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v10

    .line 512
    invoke-virtual {v9, v10, v14}, Landroid/database/sqlite/SQLiteDatabase;->rawQuery(Ljava/lang/String;[Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v9

    iput-object v9, p0, Lcom/example/m6wmr/DishesActivity2;->cursor:Landroid/database/Cursor;

    .line 514
    const/4 v7, 0x0

    .line 515
    .local v7, "goodscount":I
    const/4 v1, 0x1

    .line 516
    .local v1, "checkgd":Z
    const/4 v6, 0x0

    .line 517
    .local v6, "goodscostone":F
    iget-object v9, p0, Lcom/example/m6wmr/DishesActivity2;->cursor:Landroid/database/Cursor;

    if-eqz v9, :cond_2

    .line 518
    :goto_0
    iget-object v9, p0, Lcom/example/m6wmr/DishesActivity2;->cursor:Landroid/database/Cursor;

    invoke-interface {v9}, Landroid/database/Cursor;->moveToNext()Z

    move-result v9

    if-nez v9, :cond_1

    .line 529
    :goto_1
    iget-object v9, p0, Lcom/example/m6wmr/DishesActivity2;->cursor:Landroid/database/Cursor;

    invoke-interface {v9}, Landroid/database/Cursor;->close()V

    .line 530
    if-eqz v1, :cond_3

    .line 531
    iget-object v9, p0, Lcom/example/m6wmr/DishesActivity2;->context:Landroid/content/Context;

    const-string v10, "goodsfind"

    const-string v11, "goodsfind"

    invoke-static {v9, v10, v11}, Lmyapp/Util;->alertdialog(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    .line 567
    :cond_0
    :goto_2
    return-void

    .line 519
    :cond_1
    iget-object v9, p0, Lcom/example/m6wmr/DishesActivity2;->cursor:Landroid/database/Cursor;

    iget-object v10, p0, Lcom/example/m6wmr/DishesActivity2;->cursor:Landroid/database/Cursor;

    .line 520
    const-string v11, "goodscount"

    invoke-interface {v10, v11}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v10

    .line 519
    invoke-interface {v9, v10}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v9

    invoke-static {v9}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

    move-result-object v9

    invoke-virtual {v9}, Ljava/lang/Integer;->intValue()I

    move-result v7

    .line 521
    const/4 v1, 0x0

    .line 522
    iget-object v9, p0, Lcom/example/m6wmr/DishesActivity2;->cursor:Landroid/database/Cursor;

    iget-object v10, p0, Lcom/example/m6wmr/DishesActivity2;->cursor:Landroid/database/Cursor;

    .line 523
    const-string v11, "goodscost"

    invoke-interface {v10, v11}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v10

    .line 522
    invoke-interface {v9, v10}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v9

    invoke-static {v9}, Ljava/lang/Float;->valueOf(Ljava/lang/String;)Ljava/lang/Float;

    move-result-object v9

    invoke-virtual {v9}, Ljava/lang/Float;->floatValue()F

    move-result v3

    .line 524
    .local v3, "dajia":F
    mul-float v9, v3, v12

    invoke-static {v9}, Ljava/lang/Math;->round(F)I

    move-result v9

    int-to-float v9, v9

    div-float v6, v9, v12

    goto :goto_0

    .line 527
    .end local v3    # "dajia":F
    :cond_2
    const/4 v1, 0x1

    goto :goto_1

    .line 535
    :cond_3
    iget v9, p0, Lcom/example/m6wmr/DishesActivity2;->ind:I

    const/4 v10, 0x1

    if-ge v9, v10, :cond_5

    .line 537
    iget-object v9, p0, Lcom/example/m6wmr/DishesActivity2;->db:Landroid/database/sqlite/SQLiteDatabase;

    const-string v10, "cart"

    new-instance v11, Ljava/lang/StringBuilder;

    const-string v12, "goodsid = \'"

    invoke-direct {v11, v12}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget-object v12, p0, Lcom/example/m6wmr/DishesActivity2;->goodsid:Ljava/lang/String;

    invoke-virtual {v11, v12}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v11

    const-string v12, "\'"

    invoke-virtual {v11, v12}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v11

    invoke-virtual {v11}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v11

    invoke-virtual {v9, v10, v11, v14}, Landroid/database/sqlite/SQLiteDatabase;->delete(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;)I

    .line 545
    :goto_3
    iget-object v9, p0, Lcom/example/m6wmr/DishesActivity2;->m:Lmyapp/MyApp;

    invoke-virtual {v9}, Lmyapp/MyApp;->getActivity()Ljava/util/ArrayList;

    move-result-object v0

    .line 546
    .local v0, "activityList":Ljava/util/ArrayList;, "Ljava/util/ArrayList<Landroid/app/Activity;>;"
    const/4 v5, 0x0

    .line 547
    .local v5, "find":Z
    invoke-virtual {v0}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v9

    :cond_4
    :goto_4
    invoke-interface {v9}, Ljava/util/Iterator;->hasNext()Z

    move-result v10

    if-nez v10, :cond_6

    .line 555
    if-eqz v5, :cond_0

    .line 557
    new-instance v8, Landroid/os/Message;

    invoke-direct {v8}, Landroid/os/Message;-><init>()V

    .line 559
    .local v8, "msg":Landroid/os/Message;
    const/16 v9, 0x63

    iput v9, v8, Landroid/os/Message;->arg1:I

    .line 560
    iget-object v9, p0, Lcom/example/m6wmr/DishesActivity2;->goodsid:Ljava/lang/String;

    invoke-static {v9}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

    move-result-object v9

    invoke-virtual {v9}, Ljava/lang/Integer;->intValue()I

    move-result v9

    iput v9, v8, Landroid/os/Message;->arg2:I

    .line 561
    const-string v9, "del"

    iput-object v9, v8, Landroid/os/Message;->obj:Ljava/lang/Object;

    .line 562
    sget-object v9, Lcom/example/m6wmr/ShopDishesActivity;->h:Landroid/os/Handler;

    invoke-virtual {v9, v8}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    goto/16 :goto_2

    .line 540
    .end local v0    # "activityList":Ljava/util/ArrayList;, "Ljava/util/ArrayList<Landroid/app/Activity;>;"
    .end local v5    # "find":Z
    .end local v8    # "msg":Landroid/os/Message;
    :cond_5
    iget-object v9, p0, Lcom/example/m6wmr/DishesActivity2;->cv:Landroid/content/ContentValues;

    const-string v10, "goodscount"

    iget v11, p0, Lcom/example/m6wmr/DishesActivity2;->ind:I

    invoke-static {v11}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v11

    invoke-virtual {v9, v10, v11}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Integer;)V

    .line 541
    iget-object v9, p0, Lcom/example/m6wmr/DishesActivity2;->db:Landroid/database/sqlite/SQLiteDatabase;

    const-string v10, "cart"

    iget-object v11, p0, Lcom/example/m6wmr/DishesActivity2;->cv:Landroid/content/ContentValues;

    new-instance v12, Ljava/lang/StringBuilder;

    const-string v13, "goodsid = \'"

    invoke-direct {v12, v13}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget-object v13, p0, Lcom/example/m6wmr/DishesActivity2;->goodsid:Ljava/lang/String;

    invoke-virtual {v12, v13}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v12

    const-string v13, "\'"

    invoke-virtual {v12, v13}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v12

    invoke-virtual {v12}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v12

    invoke-virtual {v9, v10, v11, v12, v14}, Landroid/database/sqlite/SQLiteDatabase;->update(Ljava/lang/String;Landroid/content/ContentValues;Ljava/lang/String;[Ljava/lang/String;)I

    goto :goto_3

    .line 547
    .restart local v0    # "activityList":Ljava/util/ArrayList;, "Ljava/util/ArrayList<Landroid/app/Activity;>;"
    .restart local v5    # "find":Z
    :cond_6
    invoke-interface {v9}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Landroid/app/Activity;

    .line 548
    .local v4, "e":Landroid/app/Activity;
    invoke-virtual {v4}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v10

    invoke-virtual {v4}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v11

    const-string v12, "."

    invoke-virtual {v11, v12}, Ljava/lang/String;->lastIndexOf(Ljava/lang/String;)I

    move-result v11

    add-int/lit8 v11, v11, 0x1

    invoke-virtual {v4}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v12

    const-string v13, "@"

    invoke-virtual {v12, v13}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v12

    invoke-virtual {v10, v11, v12}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v2

    .line 549
    .local v2, "checkname":Ljava/lang/String;
    const-string v10, ""

    const-string v11, "checkname"

    invoke-static {v10, v11}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 550
    const-string v10, "ShopDishesActivity"

    invoke-virtual {v2, v10}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v10

    if-eqz v10, :cond_4

    .line 551
    const/4 v5, 0x1

    goto/16 :goto_4
.end method

.method public eventClick(Ljava/lang/String;)V
    .locals 3
    .param p1, "url"    # Ljava/lang/String;

    .prologue
    .line 1231
    const-string v0, "TAG"

    new-instance v1, Ljava/lang/StringBuilder;

    const-string v2, "-----:"

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 1233
    return-void
.end method

.method public getAll()V
    .locals 21

    .prologue
    .line 834
    new-instance v2, Ljava/util/ArrayList;

    invoke-direct {v2}, Ljava/util/ArrayList;-><init>()V

    .line 836
    .local v2, "GoodsBeans":Ljava/util/List;, "Ljava/util/List<Lbean/GoodsBean;>;"
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesActivity2;->db:Landroid/database/sqlite/SQLiteDatabase;

    move-object/from16 v18, v0

    new-instance v19, Ljava/lang/StringBuilder;

    const-string v20, "select * from cart where shopid="

    invoke-direct/range {v19 .. v20}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesActivity2;->shopid:Ljava/lang/String;

    move-object/from16 v20, v0

    invoke-virtual/range {v19 .. v20}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v19

    invoke-virtual/range {v19 .. v19}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v19

    const/16 v20, 0x0

    invoke-virtual/range {v18 .. v20}, Landroid/database/sqlite/SQLiteDatabase;->rawQuery(Ljava/lang/String;[Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v4

    .line 838
    .local v4, "cursor":Landroid/database/Cursor;
    :goto_0
    invoke-interface {v4}, Landroid/database/Cursor;->moveToNext()Z

    move-result v18

    if-nez v18, :cond_0

    .line 861
    const/4 v11, 0x0

    .line 862
    .local v11, "i":I
    const-string v15, "0"

    .line 863
    .local v15, "n":Ljava/lang/String;
    invoke-interface {v2}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v19

    :goto_1
    invoke-interface/range {v19 .. v19}, Ljava/util/Iterator;->hasNext()Z

    move-result v18

    if-nez v18, :cond_4

    .line 867
    const/4 v12, 0x0

    .line 868
    .local v12, "j":F
    invoke-interface {v2}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v19

    :goto_2
    invoke-interface/range {v19 .. v19}, Ljava/util/Iterator;->hasNext()Z

    move-result v18

    if-nez v18, :cond_6

    .line 873
    const/4 v13, 0x0

    .line 874
    .local v13, "k":I
    invoke-interface {v2}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v19

    :goto_3
    invoke-interface/range {v19 .. v19}, Ljava/util/Iterator;->hasNext()Z

    move-result v18

    if-nez v18, :cond_8

    .line 879
    const/4 v14, 0x0

    .line 880
    .local v14, "m":F
    invoke-interface {v2}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v19

    :goto_4
    invoke-interface/range {v19 .. v19}, Ljava/util/Iterator;->hasNext()Z

    move-result v18

    if-nez v18, :cond_a

    .line 884
    add-int v18, v11, v13

    move/from16 v0, v18

    move-object/from16 v1, p0

    iput v0, v1, Lcom/example/m6wmr/DishesActivity2;->sumcart:I

    .line 885
    add-float v18, v12, v14

    move/from16 v0, v18

    move-object/from16 v1, p0

    iput v0, v1, Lcom/example/m6wmr/DishesActivity2;->sumcartcost:F

    .line 886
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesActivity2;->tv_num:Landroid/widget/TextView;

    move-object/from16 v18, v0

    move-object/from16 v0, p0

    iget v0, v0, Lcom/example/m6wmr/DishesActivity2;->sumcart:I

    move/from16 v19, v0

    invoke-static/range {v19 .. v19}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v19

    invoke-virtual/range {v18 .. v19}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 887
    move-object/from16 v0, p0

    iget v0, v0, Lcom/example/m6wmr/DishesActivity2;->sumcartcost:F

    move/from16 v18, v0

    const/high16 v19, 0x42c80000    # 100.0f

    mul-float v18, v18, v19

    invoke-static/range {v18 .. v18}, Ljava/lang/Math;->round(F)I

    move-result v18

    move/from16 v0, v18

    int-to-float v0, v0

    move/from16 v18, v0

    const/high16 v19, 0x42c80000    # 100.0f

    div-float v18, v18, v19

    move/from16 v0, v18

    move-object/from16 v1, p0

    iput v0, v1, Lcom/example/m6wmr/DishesActivity2;->sumcartcost:F

    .line 888
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/DishesActivity2;->tv_total:Landroid/widget/TextView;

    move-object/from16 v18, v0

    move-object/from16 v0, p0

    iget v0, v0, Lcom/example/m6wmr/DishesActivity2;->sumcartcost:F

    move/from16 v19, v0

    invoke-static/range {v19 .. v19}, Ljava/lang/String;->valueOf(F)Ljava/lang/String;

    move-result-object v19

    invoke-virtual/range {v18 .. v19}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 889
    return-void

    .line 839
    .end local v11    # "i":I
    .end local v12    # "j":F
    .end local v13    # "k":I
    .end local v14    # "m":F
    .end local v15    # "n":Ljava/lang/String;
    :cond_0
    new-instance v8, Lbean/GoodsBean;

    invoke-direct {v8}, Lbean/GoodsBean;-><init>()V

    .line 840
    .local v8, "goodsBean":Lbean/GoodsBean;
    const-string v18, "goodsid"

    move-object/from16 v0, v18

    invoke-interface {v4, v0}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v18

    move/from16 v0, v18

    invoke-interface {v4, v0}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v7

    .line 841
    .local v7, "goodid":Ljava/lang/String;
    const-string v18, "shopid"

    move-object/from16 v0, v18

    invoke-interface {v4, v0}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v18

    move/from16 v0, v18

    invoke-interface {v4, v0}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v17

    .line 842
    .local v17, "shopid":Ljava/lang/String;
    const-string v18, "goodsname"

    move-object/from16 v0, v18

    invoke-interface {v4, v0}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v18

    move/from16 v0, v18

    invoke-interface {v4, v0}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v10

    .line 843
    .local v10, "goodsname":Ljava/lang/String;
    const-string v19, "goodsname----------------------------"

    if-eqz v10, :cond_1

    move-object/from16 v18, v10

    :goto_5
    move-object/from16 v0, v19

    move-object/from16 v1, v18

    invoke-static {v0, v1}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 844
    const-string v18, "goodscount"

    move-object/from16 v0, v18

    invoke-interface {v4, v0}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v18

    move/from16 v0, v18

    invoke-interface {v4, v0}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v3

    .line 845
    .local v3, "count":Ljava/lang/String;
    const-string v19, "goodscount----------------------------"

    if-eqz v3, :cond_2

    move-object/from16 v18, v3

    :goto_6
    move-object/from16 v0, v19

    move-object/from16 v1, v18

    invoke-static {v0, v1}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 846
    const-string v18, "goodscost"

    move-object/from16 v0, v18

    invoke-interface {v4, v0}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v18

    move/from16 v0, v18

    invoke-interface {v4, v0}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v9

    .line 847
    .local v9, "goodscost":Ljava/lang/String;
    const-string v18, "pid"

    move-object/from16 v0, v18

    invoke-interface {v4, v0}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v18

    move/from16 v0, v18

    invoke-interface {v4, v0}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v16

    .line 848
    .local v16, "pid":Ljava/lang/String;
    const-string v18, "pnum"

    move-object/from16 v0, v18

    invoke-interface {v4, v0}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v18

    move/from16 v0, v18

    invoke-interface {v4, v0}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v6

    .line 849
    .local v6, "ggnum":Ljava/lang/String;
    const-string v19, "ggnum----------------------------"

    if-eqz v6, :cond_3

    move-object/from16 v18, v6

    :goto_7
    move-object/from16 v0, v19

    move-object/from16 v1, v18

    invoke-static {v0, v1}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 850
    invoke-virtual {v8, v7}, Lbean/GoodsBean;->setId(Ljava/lang/String;)V

    .line 851
    move-object/from16 v0, v17

    invoke-virtual {v8, v0}, Lbean/GoodsBean;->setShopid(Ljava/lang/String;)V

    .line 852
    invoke-virtual {v8, v10}, Lbean/GoodsBean;->setname(Ljava/lang/String;)V

    .line 853
    invoke-virtual {v8, v3}, Lbean/GoodsBean;->setcounts(Ljava/lang/String;)V

    .line 854
    invoke-static {v9}, Ljava/lang/Float;->valueOf(Ljava/lang/String;)Ljava/lang/Float;

    move-result-object v18

    invoke-virtual/range {v18 .. v18}, Ljava/lang/Float;->floatValue()F

    move-result v18

    move/from16 v0, v18

    invoke-virtual {v8, v0}, Lbean/GoodsBean;->setcost(F)V

    .line 855
    move-object/from16 v0, v16

    invoke-virtual {v8, v0}, Lbean/GoodsBean;->setGgid(Ljava/lang/String;)V

    .line 856
    invoke-virtual {v8, v6}, Lbean/GoodsBean;->setGgnum(Ljava/lang/String;)V

    .line 858
    invoke-interface {v2, v8}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto/16 :goto_0

    .line 843
    .end local v3    # "count":Ljava/lang/String;
    .end local v6    # "ggnum":Ljava/lang/String;
    .end local v9    # "goodscost":Ljava/lang/String;
    .end local v16    # "pid":Ljava/lang/String;
    :cond_1
    const-string v18, "0"

    goto/16 :goto_5

    .line 845
    .restart local v3    # "count":Ljava/lang/String;
    :cond_2
    const-string v18, "0"

    goto :goto_6

    .line 849
    .restart local v6    # "ggnum":Ljava/lang/String;
    .restart local v9    # "goodscost":Ljava/lang/String;
    .restart local v16    # "pid":Ljava/lang/String;
    :cond_3
    const-string v18, "0"

    goto :goto_7

    .line 863
    .end local v3    # "count":Ljava/lang/String;
    .end local v6    # "ggnum":Ljava/lang/String;
    .end local v7    # "goodid":Ljava/lang/String;
    .end local v8    # "goodsBean":Lbean/GoodsBean;
    .end local v9    # "goodscost":Ljava/lang/String;
    .end local v10    # "goodsname":Ljava/lang/String;
    .end local v16    # "pid":Ljava/lang/String;
    .end local v17    # "shopid":Ljava/lang/String;
    .restart local v11    # "i":I
    .restart local v15    # "n":Ljava/lang/String;
    :cond_4
    invoke-interface/range {v19 .. v19}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v5

    check-cast v5, Lbean/GoodsBean;

    .line 864
    .local v5, "e":Lbean/GoodsBean;
    invoke-virtual {v5}, Lbean/GoodsBean;->getGgid()Ljava/lang/String;

    move-result-object v18

    if-nez v18, :cond_5

    invoke-virtual {v5}, Lbean/GoodsBean;->getcounts()Ljava/lang/String;

    move-result-object v18

    :goto_8
    invoke-static/range {v18 .. v18}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

    move-result-object v18

    invoke-virtual/range {v18 .. v18}, Ljava/lang/Integer;->intValue()I

    move-result v18

    add-int v11, v11, v18

    goto/16 :goto_1

    :cond_5
    move-object/from16 v18, v15

    goto :goto_8

    .line 868
    .end local v5    # "e":Lbean/GoodsBean;
    .restart local v12    # "j":F
    :cond_6
    invoke-interface/range {v19 .. v19}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v5

    check-cast v5, Lbean/GoodsBean;

    .line 869
    .restart local v5    # "e":Lbean/GoodsBean;
    invoke-virtual {v5}, Lbean/GoodsBean;->getcost()F

    move-result v20

    invoke-virtual {v5}, Lbean/GoodsBean;->getGgid()Ljava/lang/String;

    move-result-object v18

    if-nez v18, :cond_7

    invoke-virtual {v5}, Lbean/GoodsBean;->getcounts()Ljava/lang/String;

    move-result-object v18

    :goto_9
    invoke-static/range {v18 .. v18}, Ljava/lang/Float;->valueOf(Ljava/lang/String;)Ljava/lang/Float;

    move-result-object v18

    invoke-virtual/range {v18 .. v18}, Ljava/lang/Float;->floatValue()F

    move-result v18

    mul-float v18, v18, v20

    add-float v12, v12, v18

    goto/16 :goto_2

    :cond_7
    move-object/from16 v18, v15

    goto :goto_9

    .line 874
    .end local v5    # "e":Lbean/GoodsBean;
    .restart local v13    # "k":I
    :cond_8
    invoke-interface/range {v19 .. v19}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v5

    check-cast v5, Lbean/GoodsBean;

    .line 875
    .restart local v5    # "e":Lbean/GoodsBean;
    invoke-virtual {v5}, Lbean/GoodsBean;->getGgid()Ljava/lang/String;

    move-result-object v18

    if-eqz v18, :cond_9

    invoke-virtual {v5}, Lbean/GoodsBean;->getGgnum()Ljava/lang/String;

    move-result-object v18

    :goto_a
    invoke-static/range {v18 .. v18}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

    move-result-object v18

    invoke-virtual/range {v18 .. v18}, Ljava/lang/Integer;->intValue()I

    move-result v18

    add-int v13, v13, v18

    goto/16 :goto_3

    :cond_9
    move-object/from16 v18, v15

    goto :goto_a

    .line 880
    .end local v5    # "e":Lbean/GoodsBean;
    .restart local v14    # "m":F
    :cond_a
    invoke-interface/range {v19 .. v19}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v5

    check-cast v5, Lbean/GoodsBean;

    .line 881
    .restart local v5    # "e":Lbean/GoodsBean;
    invoke-virtual {v5}, Lbean/GoodsBean;->getcost()F

    move-result v20

    invoke-virtual {v5}, Lbean/GoodsBean;->getGgid()Ljava/lang/String;

    move-result-object v18

    if-eqz v18, :cond_b

    invoke-virtual {v5}, Lbean/GoodsBean;->getGgnum()Ljava/lang/String;

    move-result-object v18

    :goto_b
    invoke-static/range {v18 .. v18}, Ljava/lang/Float;->valueOf(Ljava/lang/String;)Ljava/lang/Float;

    move-result-object v18

    invoke-virtual/range {v18 .. v18}, Ljava/lang/Float;->floatValue()F

    move-result v18

    mul-float v18, v18, v20

    add-float v14, v14, v18

    goto/16 :goto_4

    :cond_b
    move-object/from16 v18, v15

    goto :goto_b
.end method

.method public getShopSource()Z
    .locals 1

    .prologue
    .line 924
    new-instance v0, Lcom/example/m6wmr/DishesActivity2$4;

    invoke-direct {v0, p0}, Lcom/example/m6wmr/DishesActivity2$4;-><init>(Lcom/example/m6wmr/DishesActivity2;)V

    .line 1051
    invoke-virtual {v0}, Lcom/example/m6wmr/DishesActivity2$4;->start()V

    .line 1053
    const/4 v0, 0x0

    return v0
.end method

.method public getViewByPosition(ILandroid/widget/ListView;)Landroid/view/View;
    .locals 5
    .param p1, "pos"    # I
    .param p2, "listView"    # Landroid/widget/ListView;

    .prologue
    .line 1555
    invoke-virtual {p2}, Landroid/widget/ListView;->getFirstVisiblePosition()I

    move-result v1

    .line 1557
    .local v1, "firstListItemPosition":I
    invoke-virtual {p2}, Landroid/widget/ListView;->getChildCount()I

    move-result v3

    .line 1556
    add-int/2addr v3, v1

    add-int/lit8 v2, v3, -0x1

    .line 1559
    .local v2, "lastListItemPosition":I
    if-lt p1, v1, :cond_0

    if-le p1, v2, :cond_1

    .line 1560
    :cond_0
    invoke-virtual {p2}, Landroid/widget/ListView;->getAdapter()Landroid/widget/ListAdapter;

    move-result-object v3

    const/4 v4, 0x0

    invoke-interface {v3, p1, v4, p2}, Landroid/widget/ListAdapter;->getView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v3

    .line 1563
    :goto_0
    return-object v3

    .line 1562
    :cond_1
    sub-int v0, p1, v1

    .line 1563
    .local v0, "childIndex":I
    invoke-virtual {p2, v0}, Landroid/widget/ListView;->getChildAt(I)Landroid/view/View;

    move-result-object v3

    goto :goto_0
.end method

.method public initImages(Ljava/util/List;)V
    .locals 13
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List",
            "<",
            "Lbean/Shopimg;",
            ">;)V"
        }
    .end annotation

    .prologue
    .local p1, "listcx2":Ljava/util/List;, "Ljava/util/List<Lbean/Shopimg;>;"
    const/16 v12, 0xc

    const/4 v11, 0x5

    const/4 v10, 0x0

    const/4 v8, -0x1

    .line 1104
    new-instance v7, Ljava/util/ArrayList;

    invoke-direct {v7}, Ljava/util/ArrayList;-><init>()V

    iput-object v7, p0, Lcom/example/m6wmr/DishesActivity2;->viewList:Ljava/util/List;

    .line 1105
    new-instance v7, Ljava/util/ArrayList;

    invoke-direct {v7}, Ljava/util/ArrayList;-><init>()V

    iput-object v7, p0, Lcom/example/m6wmr/DishesActivity2;->dotViewsList:Ljava/util/List;

    .line 1107
    new-instance v5, Landroid/view/ViewGroup$LayoutParams;

    invoke-direct {v5, v8, v8}, Landroid/view/ViewGroup$LayoutParams;-><init>(II)V

    .line 1109
    .local v5, "params":Landroid/view/ViewGroup$LayoutParams;
    const v7, 0x7f0c006a

    invoke-virtual {p0, v7}, Lcom/example/m6wmr/DishesActivity2;->findViewById(I)Landroid/view/View;

    move-result-object v6

    check-cast v6, Landroid/widget/LinearLayout;

    .line 1110
    .local v6, "v_LinearLayout":Landroid/widget/LinearLayout;
    const/4 v2, 0x0

    .line 1111
    .local v2, "k":I
    const/4 v0, 0x0

    .local v0, "i":I
    :goto_0
    invoke-interface {p1}, Ljava/util/List;->size()I

    move-result v7

    if-lt v0, v7, :cond_0

    .line 1134
    return-void

    .line 1113
    :cond_0
    new-instance v1, Landroid/widget/ImageView;

    invoke-direct {v1, p0}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V

    .line 1114
    .local v1, "imageView":Landroid/widget/ImageView;
    invoke-virtual {v1, v5}, Landroid/widget/ImageView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 1115
    sget-object v7, Landroid/widget/ImageView$ScaleType;->FIT_XY:Landroid/widget/ImageView$ScaleType;

    invoke-virtual {v1, v7}, Landroid/widget/ImageView;->setScaleType(Landroid/widget/ImageView$ScaleType;)V

    .line 1117
    iget-object v8, p0, Lcom/example/m6wmr/DishesActivity2;->imageLoader:Lcom/nostra13/universalimageloader/core/ImageLoader;

    invoke-interface {p1, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v7

    check-cast v7, Lbean/Shopimg;

    invoke-virtual {v7}, Lbean/Shopimg;->getImg()Ljava/lang/String;

    move-result-object v7

    invoke-static {}, Lcom/example/m6wmr/DishesActivity2;->getDefaultOptions()Lcom/nostra13/universalimageloader/core/DisplayImageOptions;

    move-result-object v9

    invoke-virtual {v8, v7, v1, v9}, Lcom/nostra13/universalimageloader/core/ImageLoader;->displayImage(Ljava/lang/String;Landroid/widget/ImageView;Lcom/nostra13/universalimageloader/core/DisplayImageOptions;)V

    .line 1118
    iget-object v7, p0, Lcom/example/m6wmr/DishesActivity2;->viewList:Ljava/util/List;

    invoke-interface {v7, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 1121
    new-instance v4, Landroid/view/View;

    iget-object v7, p0, Lcom/example/m6wmr/DishesActivity2;->context:Landroid/content/Context;

    invoke-direct {v4, v7}, Landroid/view/View;-><init>(Landroid/content/Context;)V

    .line 1122
    .local v4, "myview":Landroid/view/View;
    invoke-virtual {v4, v2}, Landroid/view/View;->setId(I)V

    .line 1123
    new-instance v3, Landroid/widget/LinearLayout$LayoutParams;

    invoke-direct {v3, v12, v12}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    .line 1124
    .local v3, "lp":Landroid/widget/LinearLayout$LayoutParams;
    invoke-virtual {v3, v11, v10, v11, v10}, Landroid/widget/LinearLayout$LayoutParams;->setMargins(IIII)V

    .line 1125
    invoke-virtual {v4, v3}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 1126
    const v7, 0x7f020050

    invoke-virtual {v4, v7}, Landroid/view/View;->setBackgroundResource(I)V

    .line 1127
    invoke-virtual {v6, v4}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    .line 1129
    iget-object v7, p0, Lcom/example/m6wmr/DishesActivity2;->dotViewsList:Ljava/util/List;

    invoke-interface {v7, v4}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 1131
    add-int/lit8 v2, v2, 0x1

    .line 1132
    const-string v7, "1234567890-234567890-=234567890"

    new-instance v8, Ljava/lang/StringBuilder;

    invoke-static {v2}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v9

    invoke-direct {v8, v9}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v8}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v8

    invoke-static {v7, v8}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 1111
    add-int/lit8 v0, v0, 0x1

    goto :goto_0
.end method

.method public onActivityResult(IILandroid/content/Intent;)V
    .locals 3
    .param p1, "requestCode"    # I
    .param p2, "resultCode"    # I
    .param p3, "data"    # Landroid/content/Intent;

    .prologue
    .line 1060
    invoke-super {p0, p1, p2, p3}, Landroid/app/Activity;->onActivityResult(IILandroid/content/Intent;)V

    .line 1062
    const/16 v1, 0x7b

    if-ne p1, v1, :cond_0

    .line 1063
    const/4 v1, 0x1

    if-ne p2, v1, :cond_0

    .line 1065
    new-instance v0, Landroid/content/Intent;

    invoke-direct {v0}, Landroid/content/Intent;-><init>()V

    .line 1066
    .local v0, "intent":Landroid/content/Intent;
    const-string v1, "shopid"

    iget-object v2, p0, Lcom/example/m6wmr/DishesActivity2;->shopid:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 1067
    const-string v1, "shopname"

    iget-object v2, p0, Lcom/example/m6wmr/DishesActivity2;->shopname:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 1068
    iget-object v1, p0, Lcom/example/m6wmr/DishesActivity2;->context:Landroid/content/Context;

    const-class v2, Lcom/example/m6wmr/CarOrderActivity;

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->setClass(Landroid/content/Context;Ljava/lang/Class;)Landroid/content/Intent;

    .line 1069
    invoke-virtual {p0, v0}, Lcom/example/m6wmr/DishesActivity2;->startActivity(Landroid/content/Intent;)V

    .line 1081
    .end local v0    # "intent":Landroid/content/Intent;
    :cond_0
    return-void
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 11
    .param p1, "savedInstanceState"    # Landroid/os/Bundle;

    .prologue
    const/4 v8, 0x0

    const v10, -0xd53e87

    const/16 v9, 0x8

    .line 156
    invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V

    .line 157
    const v7, 0x7f030013

    invoke-virtual {p0, v7}, Lcom/example/m6wmr/DishesActivity2;->setContentView(I)V

    .line 158
    invoke-virtual {p0}, Lcom/example/m6wmr/DishesActivity2;->getApplicationContext()Landroid/content/Context;

    move-result-object v7

    check-cast v7, Lmyapp/MyApp;

    iput-object v7, p0, Lcom/example/m6wmr/DishesActivity2;->m:Lmyapp/MyApp;

    .line 159
    new-instance v7, Ldbclass/DBOpenHelper;

    invoke-direct {v7, p0}, Ldbclass/DBOpenHelper;-><init>(Landroid/content/Context;)V

    iput-object v7, p0, Lcom/example/m6wmr/DishesActivity2;->helper:Ldbclass/DBOpenHelper;

    .line 160
    iget-object v7, p0, Lcom/example/m6wmr/DishesActivity2;->helper:Ldbclass/DBOpenHelper;

    invoke-virtual {v7}, Ldbclass/DBOpenHelper;->getWritableDatabase()Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v7

    iput-object v7, p0, Lcom/example/m6wmr/DishesActivity2;->db:Landroid/database/sqlite/SQLiteDatabase;

    .line 161
    iget-object v7, p0, Lcom/example/m6wmr/DishesActivity2;->helper:Ldbclass/DBOpenHelper;

    invoke-virtual {v7}, Ldbclass/DBOpenHelper;->getReadableDatabase()Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v7

    iput-object v7, p0, Lcom/example/m6wmr/DishesActivity2;->db:Landroid/database/sqlite/SQLiteDatabase;

    .line 162
    iget-object v7, p0, Lcom/example/m6wmr/DishesActivity2;->m:Lmyapp/MyApp;

    invoke-virtual {v7}, Lmyapp/MyApp;->getActivity()Ljava/util/ArrayList;

    move-result-object v0

    .line 164
    .local v0, "activityList":Ljava/util/ArrayList;, "Ljava/util/ArrayList<Landroid/app/Activity;>;"
    invoke-virtual {v0, p0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 165
    new-instance v7, Landroid/content/ContentValues;

    invoke-direct {v7}, Landroid/content/ContentValues;-><init>()V

    iput-object v7, p0, Lcom/example/m6wmr/DishesActivity2;->cv:Landroid/content/ContentValues;

    .line 166
    new-instance v7, Ljava/util/ArrayList;

    invoke-direct {v7}, Ljava/util/ArrayList;-><init>()V

    iput-object v7, p0, Lcom/example/m6wmr/DishesActivity2;->tempgd:Ljava/util/List;

    .line 167
    new-instance v7, Ljava/util/ArrayList;

    invoke-direct {v7}, Ljava/util/ArrayList;-><init>()V

    iput-object v7, p0, Lcom/example/m6wmr/DishesActivity2;->goodsls:Ljava/util/List;

    .line 168
    const v7, 0x7f0c0070

    invoke-virtual {p0, v7}, Lcom/example/m6wmr/DishesActivity2;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/LinearLayout;

    .line 169
    .local v3, "llg":Landroid/widget/LinearLayout;
    invoke-virtual {v3, v8}, Landroid/widget/LinearLayout;->setVisibility(I)V

    .line 171
    iput v8, p0, Lcom/example/m6wmr/DishesActivity2;->sumcart:I

    .line 172
    const/4 v7, 0x0

    iput v7, p0, Lcom/example/m6wmr/DishesActivity2;->sumcartcost:F

    .line 174
    invoke-direct {p0}, Lcom/example/m6wmr/DishesActivity2;->initData()V

    .line 175
    invoke-direct {p0}, Lcom/example/m6wmr/DishesActivity2;->initView()V

    .line 176
    const/high16 v7, 0x7f0c0000

    invoke-virtual {p0, v7}, Lcom/example/m6wmr/DishesActivity2;->findViewById(I)Landroid/view/View;

    move-result-object v5

    check-cast v5, Landroid/widget/LinearLayout;

    .line 177
    .local v5, "top":Landroid/widget/LinearLayout;
    const v7, 0x7f0c007b

    invoke-virtual {p0, v7}, Lcom/example/m6wmr/DishesActivity2;->findViewById(I)Landroid/view/View;

    move-result-object v6

    check-cast v6, Landroid/widget/TextView;

    .line 178
    .local v6, "tv_pay":Landroid/widget/TextView;
    const v7, 0x7f0c007a

    invoke-virtual {p0, v7}, Lcom/example/m6wmr/DishesActivity2;->findViewById(I)Landroid/view/View;

    move-result-object v4

    check-cast v4, Landroid/widget/LinearLayout;

    .line 179
    .local v4, "llp":Landroid/widget/LinearLayout;
    iget-object v7, p0, Lcom/example/m6wmr/DishesActivity2;->m:Lmyapp/MyApp;

    invoke-virtual {v7}, Lmyapp/MyApp;->getAppcolor()Ljava/lang/String;

    move-result-object v7

    const-string v8, "1"

    invoke-virtual {v7, v8}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v7

    if-eqz v7, :cond_0

    .line 180
    const v7, 0x7f070026

    invoke-virtual {v5, v7}, Landroid/widget/LinearLayout;->setBackgroundResource(I)V

    .line 182
    iget-object v7, p0, Lcom/example/m6wmr/DishesActivity2;->search:Landroid/widget/RelativeLayout;

    const v8, 0x7f020021

    invoke-virtual {v7, v8}, Landroid/widget/RelativeLayout;->setBackgroundResource(I)V

    .line 183
    iget-object v7, p0, Lcom/example/m6wmr/DishesActivity2;->iv_add:Landroid/widget/ImageView;

    const v8, 0x7f02001b

    invoke-virtual {v7, v8}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 184
    iget-object v7, p0, Lcom/example/m6wmr/DishesActivity2;->iv_del:Landroid/widget/ImageView;

    const v8, 0x7f020001

    invoke-virtual {v7, v8}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 185
    const v7, 0x7f02001e

    invoke-virtual {v4, v7}, Landroid/widget/LinearLayout;->setBackgroundResource(I)V

    .line 186
    invoke-virtual {v6, v10}, Landroid/widget/TextView;->setTextColor(I)V

    .line 187
    iget-object v7, p0, Lcom/example/m6wmr/DishesActivity2;->tv_total:Landroid/widget/TextView;

    invoke-virtual {v7, v10}, Landroid/widget/TextView;->setTextColor(I)V

    .line 188
    iget-object v7, p0, Lcom/example/m6wmr/DishesActivity2;->tv_total1:Landroid/widget/TextView;

    invoke-virtual {v7, v10}, Landroid/widget/TextView;->setTextColor(I)V

    .line 191
    :cond_0
    iget-object v7, p0, Lcom/example/m6wmr/DishesActivity2;->tv_num:Landroid/widget/TextView;

    const-string v8, ""

    invoke-virtual {v7, v8}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 192
    iget-object v7, p0, Lcom/example/m6wmr/DishesActivity2;->tv_total:Landroid/widget/TextView;

    const-string v8, ""

    invoke-virtual {v7, v8}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 193
    invoke-virtual {p0}, Lcom/example/m6wmr/DishesActivity2;->getIntent()Landroid/content/Intent;

    move-result-object v2

    .line 194
    .local v2, "intent":Landroid/content/Intent;
    const-string v7, "goodsid"

    invoke-virtual {v2, v7}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

    iput-object v7, p0, Lcom/example/m6wmr/DishesActivity2;->goodsid:Ljava/lang/String;

    .line 195
    const-string v7, "shopid"

    invoke-virtual {v2, v7}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

    iput-object v7, p0, Lcom/example/m6wmr/DishesActivity2;->shopid:Ljava/lang/String;

    .line 196
    const-string v7, "shopname"

    invoke-virtual {v2, v7}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

    iput-object v7, p0, Lcom/example/m6wmr/DishesActivity2;->shopname:Ljava/lang/String;

    .line 197
    const-string v7, "open"

    invoke-virtual {v2, v7}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

    if-eqz v7, :cond_3

    const-string v7, "open"

    invoke-virtual {v2, v7}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

    :goto_0
    iput-object v7, p0, Lcom/example/m6wmr/DishesActivity2;->open:Ljava/lang/String;

    .line 198
    iget-object v7, p0, Lcom/example/m6wmr/DishesActivity2;->open:Ljava/lang/String;

    const-string v8, "0"

    invoke-virtual {v7, v8}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v7

    if-nez v7, :cond_1

    iget-object v7, p0, Lcom/example/m6wmr/DishesActivity2;->open:Ljava/lang/String;

    const-string v8, "1"

    invoke-virtual {v7, v8}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v7

    if-nez v7, :cond_1

    iget-object v7, p0, Lcom/example/m6wmr/DishesActivity2;->open:Ljava/lang/String;

    const-string v8, "4"

    invoke-virtual {v7, v8}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v7

    if-eqz v7, :cond_2

    .line 200
    :cond_1
    iget-object v7, p0, Lcom/example/m6wmr/DishesActivity2;->iv_add:Landroid/widget/ImageView;

    invoke-virtual {v7, v9}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 201
    iget-object v7, p0, Lcom/example/m6wmr/DishesActivity2;->iv_del:Landroid/widget/ImageView;

    invoke-virtual {v7, v9}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 202
    iget-object v7, p0, Lcom/example/m6wmr/DishesActivity2;->tv_count:Landroid/widget/TextView;

    invoke-virtual {v7, v9}, Landroid/widget/TextView;->setVisibility(I)V

    .line 206
    :cond_2
    invoke-virtual {p0}, Lcom/example/m6wmr/DishesActivity2;->getShopSource()Z

    .line 207
    invoke-virtual {p0}, Lcom/example/m6wmr/DishesActivity2;->search()V

    .line 208
    invoke-direct {p0}, Lcom/example/m6wmr/DishesActivity2;->setoncliclistner()V

    .line 210
    new-instance v7, Lcom/example/m6wmr/DishesActivity2$1;

    invoke-direct {v7, p0}, Lcom/example/m6wmr/DishesActivity2$1;-><init>(Lcom/example/m6wmr/DishesActivity2;)V

    sput-object v7, Lcom/example/m6wmr/DishesActivity2;->h:Landroid/os/Handler;

    .line 302
    const v7, 0x7f0c006f

    invoke-virtual {p0, v7}, Lcom/example/m6wmr/DishesActivity2;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    .line 303
    .local v1, "img_defined_height":Landroid/widget/TextView;
    invoke-virtual {v1, v9}, Landroid/widget/TextView;->setVisibility(I)V

    .line 305
    iget-object v7, p0, Lcom/example/m6wmr/DishesActivity2;->search:Landroid/widget/RelativeLayout;

    new-instance v8, Lcom/example/m6wmr/DishesActivity2$2;

    invoke-direct {v8, p0}, Lcom/example/m6wmr/DishesActivity2$2;-><init>(Lcom/example/m6wmr/DishesActivity2;)V

    invoke-virtual {v7, v8}, Landroid/widget/RelativeLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 364
    return-void

    .line 197
    .end local v1    # "img_defined_height":Landroid/widget/TextView;
    :cond_3
    const-string v7, "1"

    goto :goto_0
.end method

.method protected onStart()V
    .locals 0

    .prologue
    .line 471
    invoke-super {p0}, Landroid/app/Activity;->onStart()V

    .line 472
    invoke-virtual {p0}, Lcom/example/m6wmr/DishesActivity2;->getAll()V

    .line 473
    return-void
.end method

.method public search()V
    .locals 5

    .prologue
    const/16 v4, 0x8

    const/4 v3, 0x0

    .line 482
    iget-object v0, p0, Lcom/example/m6wmr/DishesActivity2;->helper:Ldbclass/DBOpenHelper;

    invoke-virtual {v0}, Ldbclass/DBOpenHelper;->getReadableDatabase()Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v0

    .line 483
    new-instance v1, Ljava/lang/StringBuilder;

    const-string v2, "select * from cart where goodsid="

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget-object v2, p0, Lcom/example/m6wmr/DishesActivity2;->goodsid:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    const/4 v2, 0x0

    .line 482
    invoke-virtual {v0, v1, v2}, Landroid/database/sqlite/SQLiteDatabase;->rawQuery(Ljava/lang/String;[Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v0

    iput-object v0, p0, Lcom/example/m6wmr/DishesActivity2;->cursor:Landroid/database/Cursor;

    .line 485
    iget-object v0, p0, Lcom/example/m6wmr/DishesActivity2;->cursor:Landroid/database/Cursor;

    invoke-interface {v0}, Landroid/database/Cursor;->getCount()I

    move-result v0

    if-lez v0, :cond_1

    .line 486
    :goto_0
    iget-object v0, p0, Lcom/example/m6wmr/DishesActivity2;->cursor:Landroid/database/Cursor;

    invoke-interface {v0}, Landroid/database/Cursor;->moveToNext()Z

    move-result v0

    if-nez v0, :cond_0

    .line 491
    iget-object v0, p0, Lcom/example/m6wmr/DishesActivity2;->cursor:Landroid/database/Cursor;

    invoke-interface {v0}, Landroid/database/Cursor;->close()V

    .line 493
    iget-object v0, p0, Lcom/example/m6wmr/DishesActivity2;->tv_count:Landroid/widget/TextView;

    iget v1, p0, Lcom/example/m6wmr/DishesActivity2;->ind:I

    invoke-static {v1}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 495
    iget-object v0, p0, Lcom/example/m6wmr/DishesActivity2;->iv_del:Landroid/widget/ImageView;

    invoke-virtual {v0, v3}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 496
    iget-object v0, p0, Lcom/example/m6wmr/DishesActivity2;->tv_count:Landroid/widget/TextView;

    invoke-virtual {v0, v3}, Landroid/widget/TextView;->setVisibility(I)V

    .line 505
    :goto_1
    return-void

    .line 487
    :cond_0
    iget-object v0, p0, Lcom/example/m6wmr/DishesActivity2;->cursor:Landroid/database/Cursor;

    iget-object v1, p0, Lcom/example/m6wmr/DishesActivity2;->cursor:Landroid/database/Cursor;

    .line 488
    const-string v2, "goodscount"

    invoke-interface {v1, v2}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v1

    .line 487
    invoke-interface {v0, v1}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I

    move-result v0

    iput v0, p0, Lcom/example/m6wmr/DishesActivity2;->ind:I

    goto :goto_0

    .line 499
    :cond_1
    iget-object v0, p0, Lcom/example/m6wmr/DishesActivity2;->iv_del:Landroid/widget/ImageView;

    invoke-virtual {v0, v4}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 500
    iget-object v0, p0, Lcom/example/m6wmr/DishesActivity2;->tv_count:Landroid/widget/TextView;

    invoke-virtual {v0, v4}, Landroid/widget/TextView;->setVisibility(I)V

    goto :goto_1
.end method
